refactor: implement IWRR as incremental nested loops
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index b95cf7f3ae22b6338fcf48940415e23337307715..f2b401d6faf5bfe879225a71ab635fe4e2c625dc 100644 (file)
@@ -21,7 +21,11 @@ export const WorkerChoiceStrategies = Object.freeze({
   /**
    * Weighted round robin worker selection strategy.
    */
-  WEIGHTED_ROUND_ROBIN: 'WEIGHTED_ROUND_ROBIN'
+  WEIGHTED_ROUND_ROBIN: 'WEIGHTED_ROUND_ROBIN',
+  /**
+   * Interleaved weighted round robin worker selection strategy.
+   */
+  INTERLEAVED_WEIGHTED_ROUND_ROBIN: 'INTERLEAVED_WEIGHTED_ROUND_ROBIN'
 } as const)
 
 /**