Further testing.

This commit is contained in:
mike12345567 2020-09-22 09:54:02 +01:00
parent 42d9dd26d9
commit cb08efdd5f
1 changed files with 11 additions and 11 deletions

View File

@ -5,17 +5,17 @@ const singleThread = require("./thread")
let workers = workerFarm(require.resolve("./thread")) let workers = workerFarm(require.resolve("./thread"))
function runWorker(job) { // function runWorker(job) {
return new Promise((resolve, reject) => { // return new Promise((resolve, reject) => {
workers(job, err => { // workers(job, err => {
if (err) { // if (err) {
reject(err) // reject(err)
} else { // } else {
resolve() // resolve()
} // }
}) // })
}) // })
} // }
/** /**
* This module is built purely to kick off the worker farm and manage the inputs/outputs * This module is built purely to kick off the worker farm and manage the inputs/outputs