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