threadify
threadify copied to clipboard
Different workers
It should be possible to have different workers not just one thread.
I don't see a way to do that with the API.
This way you could have one worker for disk IO and another for network IO and another for CPU
Hello,
Each call of a threadified function starts and run in its own worker (so if you call a function twice, you will have two web worker that run your function). The worker are terminated when the function returns.
Also, whet do you mean by "disk IO"? (Threadify works only in browsers so there is no direct disk access, and network IO are handled by the browser.)