Closed felipellrocha closed 10 months ago
Yeah, that would be great!
Okay, probably a duplicate of https://github.com/GoogleChromeLabs/wasm-bindgen-rayon/issues/12.
Indeed. If there is enough interest, I suppose we could expose it under a feature flag, but I'm hesitant of making the base crate larger (due to async machinery) for a minor convenience.
I (believe) one needs to initialize the thread pool on a separate thread itself. Is it possible to initialize the thread pool from the rust side using something like
wasm_thread
(https://github.com/chemicstry/wasm_thread) to spin up the thread that initializes the pool?