Further testing.
This commit is contained in:
parent
42d9dd26d9
commit
cb08efdd5f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue