-
Notifications
You must be signed in to change notification settings - Fork 153
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
send event from worker to main outside of a function #437
Comments
If I understand you correctly you would like to be able to send an event from a worker to the main thread? There already is a way to send an event (like progress) from the worker to the main thread using the |
like this.
|
Ah, ok so you would like to call
|
Hi, josdejong,
|
|
|
|
sure, and maybe we can add promiseMap in worker side to imple async emit like main side. thanks. |
when the worker counte is one (min:1,max:1), woker should can emit event outside function, pool can on('event') global.
The text was updated successfully, but these errors were encountered: