*/
public constructor (
min: number,
- public readonly max: number,
+ protected readonly max: number,
filePath: string,
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
) {
}
/** @inheritDoc */
- public get type (): PoolType {
+ protected get type (): PoolType {
return PoolTypes.dynamic
}
- /** @inheritDoc */
- protected get full (): boolean {
- return this.workerNodes.length >= this.max
- }
-
/** @inheritDoc */
protected get maxSize (): number {
return this.max