AtomicIntJs
The Kotlin/JS AtomicInt implementation: a plain, non-atomic var. Safe only because JS coroutines are cooperatively scheduled on a single thread and never preempted mid-operation, not a general-purpose atomic counter.
The Kotlin/JS AtomicInt implementation: a plain, non-atomic var. Safe only because JS coroutines are cooperatively scheduled on a single thread and never preempted mid-operation, not a general-purpose atomic counter.