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"))
|
||||
|
||||
function runWorker(job) {
|
||||
return new Promise((resolve, reject) => {
|
||||
workers(job, err => {
|
||||
if (err) {
|
||||
reject(err)
|
||||
} else {
|
||||
resolve()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
// function runWorker(job) {
|
||||
// return new Promise((resolve, reject) => {
|
||||
// workers(job, err => {
|
||||
// if (err) {
|
||||
// reject(err)
|
||||
// } else {
|
||||
// resolve()
|
||||
// }
|
||||
// })
|
||||
// })
|
||||
// }
|
||||
|
||||
/**
|
||||
* This module is built purely to kick off the worker farm and manage the inputs/outputs
|
||||
|
|
Loading…
Reference in New Issue