← Back to release summary

Atomics.pause

Category
JavaScript
Type
Chromium catches up
Status
Enabled by default (Chrome 133)
Intent stage
None

WPT details: Exists in test262: https://github.com/tc39/test262/tree/main/test/built-ins/Atomics/pause

Summary

Adds the Atomics.pause method to hint the CPU that the current code is executing a spinlock.

Motivation

Enables writing more efficient spinlocks.

Standards & signals

Ecosystem

Docs: https://github.com/tc39/proposal-atomics-microwait/blob/main/README.md

View on chromestatus.com