Atomics.pause()
Newly available since 2025-04-01
The Atomics.pause()
static method gives a hint to the CPU that the code calling the method is in a short-duration wait for shared memory, known as spinning or a spinlock.
Learning resources on MDN
Browser support
- Chrome 133 Released on 2025-02-04
- Chrome Android 133 Released on 2025-02-04
- Edge 133 Released on 2025-02-06
- Firefox 137 Released on 2025-04-01
- Firefox for Android 137 Released on 2025-04-01
- Safari 18.4 Released on 2025-03-31
- Safari on iOS 18.4 Released on 2025-03-31
Specifications
- Atomics.pause, from TC39 (Ecma International).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature