Adds Atomics.waitAsync, the async version of Atomics.wait. Atomics.waitAsync allows programmers to wait on a SharedArrayBuffer location in the same fashion as Atomics.wait but returns a Promise instead.
Atomics.wait blocks the thread and cannot be used on the main web browser thread, where blocking is disallowed. This makes coordination via SharedArrayBuffers between the main thread and worker threads more ergonomic.
Specification being incubated in a Community Group
Status in Chromium
Enabled by default
Consensus & Standardization
- No signals
Search tagsAtomics, waitAsync,
Last updated on 2021-12-13