Further testing.

This commit is contained in:
mike12345567 2020-09-22 09:54:02 +01:00
parent ab0ee7555b
commit c18ac80fe2
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"))
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