perf: use a single array to store pool workers and their related data
[poolifier.git] / src / pools / thread / dynamic.ts
index d5be43f189f469b46ce16ef9bcdbf4720e33b593..19cb9fbf6b9a21a649c9fe548955e62abc6c750f 100644 (file)
@@ -42,6 +42,6 @@ export class DynamicThreadPool<
 
   /** {@inheritDoc} */
   public get busy (): boolean {
-    return this.workers.size === this.max
+    return this.workers.length === this.max
   }
 }