fix: calculate round weights in IWRR at setting worker choice strategy
[poolifier.git] / src / pools / thread / dynamic.ts
index bb177f876c79893b582989d67067b4ec448b2549..56b923c4d2cd0f4c3800aba0b24abd41f83b4799 100644 (file)
@@ -45,6 +45,11 @@ export class DynamicThreadPool<
     return this.workerNodes.length === this.max
   }
 
+  /** @inheritDoc */
+  public get size (): number {
+    return this.max
+  }
+
   /** @inheritDoc */
   protected get busy (): boolean {
     return this.full && this.internalBusy()