let resolved = 0
let maxReached = 0
const pool = new DynamicThreadPool(10, 20, './yourWorker.js', {
errorHandler: e => console.error(e),
onlineHandler: () => console.log('worker is online')
})
let resolved = 0
let maxReached = 0
const pool = new DynamicThreadPool(10, 20, './yourWorker.js', {
errorHandler: e => console.error(e),
onlineHandler: () => console.log('worker is online')
})