Further testing.
This commit is contained in:
parent
ab0ee7555b
commit
c18ac80fe2
|
@ -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