simple-worker-pool
A worker pool for node.
Add task to the pool, they will be processed when a worker will be available.
Install
npm install --save simple-worker-pool
Usage
const Pool = Pool;const Task = Task;const range = ; const pool = maxWorkers: 3 debug: true; ;
Example with an async task:
const Pool = Pool;const Task = Task;const range = ; const pool = maxWorkers: 3 debug: true; ;