← Back to release summary

Atomics.pause

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

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

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

View on chromestatus.com