Closed w1nklr closed 4 months ago
I tried to reproduce the example of sending back data from the worker to the pool (from the doc https://github.com/josdejong/workerpool#events), in a browser environment (ie. with web workers):
https://codesandbox.io/p/sandbox/workerpool-in-a-react-project-forked-dgjxxc
The example demonstrates 2 issues:
pool.exec("someFunctionName")
pool.exec(someFunction)
Thanks for reporting and implementing a fix in #439.
Fixed in v9.1.1
v9.1.1
Yea, I saw that. Thank's a lot.
I tried to reproduce the example of sending back data from the worker to the pool (from the doc https://github.com/josdejong/workerpool#events), in a browser environment (ie. with web workers):
https://codesandbox.io/p/sandbox/workerpool-in-a-react-project-forked-dgjxxc
The example demonstrates 2 issues:
pool.exec("someFunctionName")
does fail in a browser environmentpool.exec(someFunction)
does perform the computation but fails to send the web-worker message to the pool.