.then(() => {
executions++
if (executions === tasks) {
- return resolve('FINISH')
+ return resolve({ ok: 1 })
}
return null
})
}
}
-const LIST_FORMATTER = new Intl.ListFormat('en-US', {
- style: 'long',
- type: 'conjunction'
-})
-
module.exports = {
- LIST_FORMATTER,
WorkerFunctions,
executeWorkerFunction,
generateRandomInteger,