Merge pull request #747 from poolifier/multiple-functions
[poolifier.git] / src / pools / selection-strategies / abstract-worker-choice-strategy.ts
index 7eced8d5985cf5f40c7b02b385b47628ed8c7154..3dda355ef29a043ad3c9c4d34241cebac6e1f28f 100644 (file)
@@ -1,5 +1,5 @@
 import { DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS } from '../../utils'
-import { PoolType, type IPool } from '../pool'
+import { type IPool, PoolType } from '../pool'
 import type { IWorker } from '../worker'
 import type {
   IWorkerChoiceStrategy,
@@ -112,7 +112,7 @@ export abstract class AbstractWorkerChoiceStrategy<
    * @returns A worker node key if there is one, `-1` otherwise.
    */
   private findLastFreeWorkerNodeKey (): number {
-    // It requires node >= 18.0.0
+    // It requires node >= 18.0.0:
     // return this.workerNodes.findLastIndex(workerNode => {
     //   return workerNode.tasksUsage?.running === 0
     // })