Socket
Socket
Sign inDemoInstall

node-worker-threads-pool

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

2

package.json
{
"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)`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc