Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different workers #8

Open
burtonator opened this issue Sep 8, 2018 · 1 comment
Open

Different workers #8

burtonator opened this issue Sep 8, 2018 · 1 comment

Comments

@burtonator
Copy link

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

@flozz
Copy link
Owner

flozz commented Sep 18, 2018

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants