perf: avoid branching on pool type
[poolifier.git] / src / pools / thread / fixed.ts
index 13df2b5c602372fdde184989c84e8b3980aad8cf..088d72c920092cb8637b5f86edbdedf62432f672 100644 (file)
@@ -108,6 +108,11 @@ export class FixedThreadPool<
     )
   }
 
+  /** @inheritDoc */
+  protected shallCreateDynamicWorker (): boolean {
+    return false
+  }
+
   /** @inheritDoc */
   protected get type (): PoolType {
     return PoolTypes.fixed