node-worker-threads-pool
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "node-worker-threads-pool", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Simple worker threads pool using Node's worker_threads module. Compatible with ES6+ Promise, Async/Await.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -21,9 +21,7 @@ const Pool = require('./pool'); | ||
const container = { | ||
workerData, | ||
task: (${ expression }) | ||
}; | ||
this.workerData = workerData; | ||
const task = (${ expression }); | ||
parentPort.on('message', (param) => { | ||
parentPort.postMessage(container.task(param)); | ||
parentPort.postMessage(task(param)); | ||
}); | ||
@@ -30,0 +28,0 @@ `; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17788
364