Skip to content

process: add `'worker'` event

Rodrigo Muino Tomonari requested to merge github/fork/jasnell/worker-event into master

Provides a new process.on('worker', (worker) => {}) event that is triggered by the creation of a new worker_thread.Worker. The use case is to allow hooks to be installed for monitoring workers without having to modify the call sites around those.

Signed-off-by: James M Snell jasnell@gmail.com

Merge request reports

Loading