Merge branch 'master' into elu-strategy
[poolifier.git] / src / pools / thread / dynamic.ts
index 04931b7423423002c6130cd4b07ee0631684ae7b..90889c9b2572728ba7145da8e3a5c04bfa3c3378 100644 (file)
@@ -26,7 +26,7 @@ export class DynamicThreadPool<
    */
   public constructor (
     min: number,
-    public readonly max: number,
+    protected readonly max: number,
     filePath: string,
     opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
   ) {
@@ -43,11 +43,6 @@ export class DynamicThreadPool<
     return this.max
   }
 
-  /** @inheritDoc */
-  protected get full (): boolean {
-    return this.workerNodes.length >= this.max
-  }
-
   /** @inheritDoc */
   protected get busy (): boolean {
     return this.full && this.internalBusy()