Getting all the running worker threads in nodejs #44268
Answered
by
mrityunjay-1
mrityunjay-1
asked this question in
General
Replies: 2 comments 1 reply
-
You can do something like this: const workers = [];
const w = new Worker(some_params);
workers.push(w); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks Marat Nagayev
…On Mon, 29 Aug 2022 at 19:20, Marat Nagayev ***@***.***> wrote:
You can do something like this:
const workers = [];const w = new Worker(some_params);workers.push(w);
—
Reply to this email directly, view it on GitHub
<#44268 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMUZOBQQ75SRBTJT2NGSOGLV3S5ZVANCNFSM563X6ZBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mrityunjay-1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a worker thread that is running fine. But from another route i walt to get all the worker threads to stop them. How can i do this ?
Beta Was this translation helpful? Give feedback.
All reactions