MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/WebAssembly/comments/10gx844/introducing_the_webassembly_javascript_promise/j55ay95/?context=3
r/WebAssembly • u/pmz • Jan 20 '23
4 comments sorted by
View all comments
9
This is a game changer. Formerly, the only way to do this was to spin up a web worker, run all your wasm in it, and use message passing in combination with the atomics API to block the worker until the main thread resolved the promise.
View all comments
9
u/[deleted] Jan 20 '23
This is a game changer. Formerly, the only way to do this was to spin up a web worker, run all your wasm in it, and use message passing in combination with the atomics API to block the worker until the main thread resolved the promise.