*/
public constructor (
min: number,
- private readonly max: number,
+ public readonly max: number,
filePath: string,
opts: ClusterPoolOptions = {}
) {
/** @inheritDoc */
public get full (): boolean {
- return this.workers.length === this.max
+ return this.workerNodes.length === this.max
}
/** @inheritDoc */
public get busy (): boolean {
- return this.full && this.findFreeWorkerKey() === -1
+ return this.full && this.internalBusy()
}
}