node-worker-threads-pool
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "node-worker-threads-pool", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Async/Await.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,2 +41,3 @@ # node-worker-threads-pool | ||
- `workerData` `<any>` [Cloneable data](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm) you want to access in task function. | ||
- `shareEnv` `<boolean>` Set `true` to enable [SHARE_ENV](https://nodejs.org/dist/latest-v14.x/docs/api/worker_threads.html#worker_threads_worker_share_env) for every threads in pool. | ||
@@ -148,5 +149,7 @@ ### `staticPool.exec(param[, timeout])` | ||
### `new DynamicPool(size)` | ||
### `new DynamicPool(size[, opt])` | ||
- `size` `<number>` Number of workers in this pool. | ||
- `opt` | ||
- `shareEnv` `<boolean>` Set `true` to enable [SHARE_ENV](https://nodejs.org/dist/latest-v14.x/docs/api/worker_threads.html#worker_threads_worker_share_env) for every threads in pool. | ||
@@ -153,0 +156,0 @@ ### `dynamicPool.exec(opt)` |
22439
254