if (executions === taskExecutions) {
resolve({ ok: 1 })
}
- return null
+ return undefined
})
.catch(err => {
console.error(err)
LIST_FORMATTER.format(this.filter('fastest').map('name'))
)
await pool.destroy()
+ pool = undefined
resolve()
})
.run({ async: true })
console.info(`The pool was busy for ${poolBusy} times`)
return pool.destroy()
}
- return null
+ return undefined
})
.catch(err => console.error(err))
}
console.info(`The pool was busy for ${poolBusy} times`)
return pool.destroy()
}
- return null
+ return undefined
})
.catch(err => console.error(err))
}
`Express is listening in cluster worker on port ${response?.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error('Express failed to start in cluster worker:', error)
`Express is listening in cluster worker on port ${response?.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error('Express failed to start in cluster worker:', error)
`Fastify is listening in cluster worker on port ${response.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error('Fastify failed to start in cluster worker:', error)
`Fastify is listening in cluster worker on port ${response.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error('Fastify failed to start in cluster worker:', error)
`WebSocket server is listening in cluster worker on port ${response.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error(
`WebSocket server is listening in cluster worker on port ${response.port}`
)
}
- return null
+ return undefined
})
.catch(error => {
console.error(
data: response.data
})
)
- return null
+ return undefined
})
.catch(emptyFunction)
break
data: response.data
})
)
- return null
+ return undefined
})
.catch(emptyFunction)
break
data: response.data
})
)
- return null
+ return undefined
})
.catch(emptyFunction)
break
data: response.data
})
)
- return null
+ return undefined
})
.catch(emptyFunction)
break
(this.opts.killHandler?.() as Promise<void>)
.then(() => {
this.sendToMainWorker({ kill: 'success' })
- return null
+ return undefined
})
.catch(() => {
this.sendToMainWorker({ kill: 'failure' })