https://github.com/josdejong/workerpool
- Fixed a debug issue: look for
--inspect
within argument strings, instead of exact match. Thanks @jimsugg.
- Updated all examples to neatly include
.catch(...)
callbacks.
- Fixed #25: timer of a timeout starting when the task is created instead of when the task is started. Thanks @eclipsesk for input.
- Fixed #2 and #19: support for debugging child processes. Thanks @tptee.
- Implemented #18: method
pool.stats()
.
- Implemented support for registering the workers methods asynchronously. This enables asynchronous initialization of workers, for example when using AMD modules. Thanks @natlibfi-arlehiko.
- Implemented environment variables
platform
,isMainThread
, andcpus
. Thanks @natlibfi-arlehiko. - Implemented option
minWorkers
. Thanks @sergei202.
- Replaced conversion of Error-objecting using serializerr to custom implementation to prevent issues with serializing/deserializing functions. This conversion implementation loses the prototype object which means that e.g. 'TypeError' will become just 'Error' in the main code. See #8. Thanks @natlibfi-arlehiko.
- Fix for a bug in PhantomJS (see #7). Thanks @natlibfi-arlehiko.
- Determine
maxWorkers
as the number of CPU's minus one in browsers too. See #6.
- Fixed #5 error when loading via AMD or bundling using Webpack.
- Implemented serializing errors with stacktrace. Thanks @mujx.
- Added an error message when wrongly calling
pool.proxy
. - Fixed function
worker.pool
not accepting both a script and options. See #1. Thanks @freund17.
- Merged function
Pool.run
intoPool.exec
, simplifying the API.
- Implemented support for cancelling running tasks.
- Implemented support for cancelling running tasks after a timeout.
- Implemented support for both node.js and the browser.
- Implemented offloading functions.
- Implemented worker proxy.
- Added docs and examples.
- Module name registered at npm.