The WebAssembly Threads feature allows multiple WebAssembly instances in separate Web Workers to share a single WebAssembly.Memory object. As with SharedArrayBuffers in JavaScript, this allows very fast communication between the Workers. This can be used to offload computation to another thread to keep the main thread and its UI responsive.

Documentation

Specification

Specification link


Specification currently under development in a Working Group

Status in Chromium

Blink>JavaScript>WebAssembly


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owners

Comments

More discussions of the related feature SharedArrayBuffers are discussed in https://docs.google.com/document/d/1W7WAHe5hZZjEdNfSMRwt_4nIv5mRkyORpVj6AOfYkd4/edit#heading=h.96g0downs8a5

Search tags

wasm, webassembly, threads,

Last updated on 2021-07-16