News for hackers. Stuff that matters.
Re:Web Workers API by _squared_ on Saturday December 04, 2021 @10:38AM (#29441503)
If you're interested in leveraging web workers easily for repetitive compute-heavy tasks in a webapp, i've built a little library that takes care of launching and managing worker threads for you: https://github.com/GitSquared/rinzler
Re:Web Workers API by wngr on Saturday December 04, 2021 @10:46AM (#29441559)
Nice. Do you also support SharedArrayBuffers or does everything need to be serializable that is sent to/from WebWorkers?
Re:Web Workers API by wngr on Saturday December 04, 2021 @10:48AM (#29441574)
By the way, I built something similar (?): A Rust library that mimics the API of the `futures-executor` crate, but each worker thread is a single WebWorker.

https://github.com/wngr/wasm-futures-executor