Closed ZhaoXiangXML closed 2 years ago
I found this bug exits in the test project of wasm-bindgen-rayon
So I should call initThreadPool
from a worker thread? Would you please kindly upgrade your test project? From what I can tell, https://github.com/GoogleChromeLabs/wasm-bindgen-rayon/blob/c3a12c4843b35d5c528fbed178aad1e9142c8072/test/index.js#L18 is calling it from main thread and It does not work on my machine.
I've noticed https://github.com/GoogleChromeLabs/wasm-bindgen-rayon/issues/18#issuecomment-960949808 and I'll check out the demo instead of the test.
So I should call
initThreadPool
from a worker thread? Would you please kindly upgrade your test project? From what I can tell,is calling it from main thread and It does not work on my machine.
Yeah for tests it didn't matter for some reason, but demo was intended to be an actual end-to-end demo of how you'd realistically use the library.
I'm trying to use wasm-bindgen-rayon 1.0.3 in my project, I'm using Chrome 103.0.5060.114 on windows.
I've this code to init the wasm part:
However I got this issue:
Should I call
initThreadPool
from an webworker or something?