https://github.com/josdejong/workerpool
v6.1.3
../src
again in the published npm package, reverting the change
in v6.1.1
(see also #243)../src
folder from the published npm package, see #243.
Thanks @Nytelife26.workerpool
not working on IE 10.new Function
instead of eval
. Thanks @tjenkinson.Pool.terminate()
now waits until
subprocesses are dead before resolving. Thanks @boneskull.WARNING: 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()
).isMainThread
not working when using worker_threads
.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.--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
.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.
nodeWorker: 'auto'
not using worker threads when available.
Thanks @stefanpenner.worker_threads
in Node.js, via the new option
nodeWorker: 'thread'
. Thanks @stefanpenner.package.json
. Thanks @sagotsky.package.json
. Thanks @greyd.Pool.terminate(force, timeout)
which will replace
Pool.clear(force)
. Thanks @jimsugg.--inspect
within argument strings,
instead of exact match. Thanks @jimsugg..catch(...)
callbacks.pool.stats()
.platform
, isMainThread
, and cpus
.
Thanks @natlibfi-arlehiko.minWorkers
. Thanks @sergei202.maxWorkers
as the number of CPU's minus one in browsers too. See #6.pool.proxy
.worker.pool
not accepting both a script and options. See #1.
Thanks @freund17.Pool.run
into Pool.exec
, simplifying the API.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.