Skip to content

Atomics.pause

The Atomics.pause() static method provides a micro-wait primitive that hints to the CPU that the caller is spinning while waiting on access to a shared resource. This allows the system to reduce the resources allocated to the core (such as power) or thread, without yielding the current thread.

Type TC39 CoreJS Babel Civet JS+
Polyfill Stage 3 View

Atomics.pause(durationHint?: number): void

Section titled “Atomics.pause(durationHint?: number): void”
Baseline logo Baseline
Chrome logo Edge logo
Firefox logo Zen logo
Safari logo
Node logo
Bun logo
Deno logo
Cloudflare Workers logo