I know wasm threads are now supported in chrome but I'd like to know if this is the case for other browsers.
http://webassembly.github.io/spec/core/
(The overall feature rather than wait / notify)
From my research for stockfish.wasm:
Chromium based (desktop only):
chrome://flags/#enable-webassembly-threads or Origin TrialFirefox:
javascript.options.shared_memory and dom.postMessage.sharedArrayBuffer.withCOOP_COEP to be enabled in about:flagsjavascript.options.shared_memory to be enabled in about:flags Other browsers: No support.
Updated 2020-11-05
Along with SharedArrayBuffer being re-enabled, WebAssembly Threads are also available since Firefox 79.
Threads in FF 79 (and Chrome Android / M91 desktop) will require the COOP/COEP headers as a mitigation for Spectre-style side-channel attacks: https://web.dev/coop-coep/
NodeJS supports threads as of v12.0.0 but requires the v8 flag --experimental-wasm-threads.
Most helpful comment
From my research for stockfish.wasm:
Chromium based (desktop only):
chrome://flags/#enable-webassembly-threadsor Origin TrialFirefox:
javascript.options.shared_memoryanddom.postMessage.sharedArrayBuffer.withCOOP_COEPto be enabled inabout:flagsjavascript.options.shared_memoryto be enabled inabout:flagsOther browsers: No support.
Updated 2020-11-05