Expand description
The static Atomics.wait()
method verifies that a given
position in an Int32Array
still contains a given value
and if so sleeps, awaiting a wakeup or a timeout.
It returns a string which is either “ok”, “not-equal”, or “timed-out”.
Note: This operation only works with a shared Int32Array
and may not be allowed on the main thread.