← Back to release summary

Shared Array Buffers, Atomics and Futex APIs

Category
JavaScript
Type
New or changed feature
Status
Origin trial (Chrome Origin trial)
Intent stage
Prepare to ship

Summary

Adds the JavaScript type SharedArrayBuffer gated behind COOP/COEP. The concept of a SharedArrayBuffer is that a message to a worker, is posted but instead of copying the content of the array just a reference to it is shared. The Atomic API provides atomic loads and stores and Read/Modify/Write accesses to SharedArrayBuffers. The Atomic.wait provides the ability for a worker to wait for another worker to signal it, without having to spinlock.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer

View on chromestatus.com