Response
>
+ /**
+ * Whether the pool is starting.
+ */
+ private readonly starting: boolean
/**
* The start timestamp of the pool.
*/
this.setupHook()
+ this.starting = true
while (
this.workerNodes.reduce(
(accumulator, workerNode) =>
) {
this.createAndSetupWorker()
}
+ this.starting = false
this.startTimestamp = performance.now()
}
}
}
- private get starting (): boolean {
- return (
- this.workerNodes.reduce(
- (accumulator, workerNode) =>
- !workerNode.info.dynamic ? accumulator + 1 : accumulator,
- 0
- ) < this.minSize
- )
- }
-
private get ready (): boolean {
return (
this.workerNodes.reduce(