`Atomics.wait`, `Atomics.notify`, `Atomics.waitAsync`
Atomics.wait
and Atomics.notify
are low-level synchronization primitives useful for implementing mutexes and other means of synchronization. However, since Atomics.wait
is blocking, it’s not possible to call it on the main thread (trying to do so throws a TypeError
).