ConstAtomically add a value and return the old value
Atomically compare and exchange
Atomically load a value
Atomically store a value
Wait for a value to change (blocking) Only works in workers/utility processes, not main thread
Optionaltimeout: number
Atomics helper - Use Atomics for thread-safe operations on shared memory
Note: These wrapper methods only support Int32Array, Uint32Array, BigInt64Array, and BigUint64Array backed by SharedArrayBuffer. While the native Atomics API supports additional types (Int8Array, Uint8Array, Int16Array, Uint16Array), this wrapper focuses on the most commonly used types for inter-process synchronization.