executions++
if (executions === tasks) {
console.log(
- `Dynamic pool take ${Date.now() -
- time} to work on ${executions} tasks`
+ `Dynamic pool take ${
+ Date.now() - time
+ } to work on ${executions} tasks`
)
}
})
}).then(res => {
if (tasks === executions) {
console.log(
- `External pool take ${Date.now() -
- time} to work on ${executions} tasks`
+ `External pool take ${
+ Date.now() - time
+ } to work on ${executions} tasks`
)
}
})