X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fcluster%2Fdynamic.ts;h=b84a80ce2b31b7fc807bceae6b29e1a7eb2af5bd;hb=a22cdf86c993800ec9ea8ae32ef0d8dbda07ec61;hp=79f684cbd39a2990f0b7f968e41cf7dda9d70569;hpb=9cd39dd47830f0923cd3ebf53b709bf7fb07e788;p=poolifier.git diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index 79f684cb..b84a80ce 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -27,24 +27,24 @@ export class DynamicClusterPool< */ public constructor ( min: number, - private readonly max: number, + public readonly max: number, filePath: string, opts: ClusterPoolOptions = {} ) { super(min, filePath, opts) } - /** {@inheritDoc} */ + /** @inheritDoc */ public get type (): PoolType { return PoolType.DYNAMIC } - /** {@inheritDoc} */ + /** @inheritDoc */ public get full (): boolean { return this.workers.length === this.max } - /** {@inheritDoc} */ + /** @inheritDoc */ public get busy (): boolean { return this.full && this.findFreeWorkerKey() === -1 }