workerpool
Advanced tools
Changelog
2020-10-03, version 6.0.2
Pool.terminate()
now waits until
subprocesses are dead before resolving. Thanks @boneskull.Changelog
2020-05-13, version 6.0.0
BREAKING CHANGE: the library entry points are changed and new source maps are added. This may have impact on your project depending on your setup.
options.nodeWorker
(renamed to
options.workerType
) and pool.clear()
(renamed to pool.terminate()
).Changelog
2019-12-31, version 5.0.4
isMainThread
not working when using worker_threads
.Changelog
2019-11-06, version 5.0.2
Changelog
2019-10-13, version 5.0.1
Changelog
2019-08-25, version 5.0.0
nodeWorker
and created a new, more extensive option
workerType
giving full control over the selected type of worker.
Added new option 'web'
to enforce use a Web Worker. See #85, #74.workerType
is changed from
'process'
to 'thread'
. See #85, #50.browser
or node
), fixing wrong
detection in a Jest test environment. See #85.Changelog
2019-08-21, version 4.0.0
--max-old-space-size
to child processes. Thanks @patte.child_process
and worker_threads
.
See #43.maxQueueSize
. Thanks @colomboe.minWorkers: 'max'
not using the configured maxWorkers
.nodeWorker
to workers initialized when creating a pool.
Thanks @spacelan.lib
to src
.Changelog
2019-03-12, version 3.1.2
Improved error message when a node.js worker unexpectedly exits (see #58). Thanks @stefanpenner.
Allocate debug ports safely, this fixes an issue cause workers to exit
unexpectedly if more then one worker pool is active, and the process is
started with a debugger (node debug
or node --inspect
).
Thanks @stefanpenner.