workerpool
workerpool copied to clipboard
Offload tasks to a pool of workers on node.js and in the browser
When using workerpool in Angular or Webpack environment, usually the web worker is written in Typescript. In Webpack 5, it already can bundle the worker script automatically if using the...
Adds support for `Abort Signals` through instances of `AbortController` for each task execution context. Functionality is enabled through the `useAbortSignal` flag on the `execOptions` object provided to the `Worker` `exec`...
Hello M. de Jong, Though not a request for support, per se, it seemed it might be helpful to pass along my experience, in case you thought it might not...
Fixes #169 Thanks to https://stackoverflow.com/a/53327815/124416
when the worker counte is one (min:1,max:1), woker should can emit event outside function, pool can on('event') global.
Is there a way to share DB pool object across the worker threads. Any attempts to send such object to the worker thread from the main thread via the pool.exec(...)...
Hi, thank you for this great library. I'm using it with the following syntax: ``` const pool = workerpool.pool(__dirname + '/import-worker-fast-v3.js', { minWorkers: 'max', maxWorkers: 8, workerType: 'thread', }); ```...
Hi, It would be a useful feature if there could be a way to send some data to all of the child workers in a pool. Something like Pool.broadcast() function...
This PR is related to https://github.com/josdejong/workerpool/issues/370 A rather small change that adds a second parameter to `workerpool.worker()` function, which accepts an object where each key is the receiver's name of...