refactor: untangle worker choosing code from worker creation code
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index fb864c5b08ffc31a3cb1336225d31f285b0ce240..9acf819b8b858900a1d42a5a681d7f001b152edf 100644 (file)
@@ -30,7 +30,7 @@ export const WorkerChoiceStrategies = Object.freeze({
 export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
 
 /**
- * Pool tasks usage statistics requirements.
+ * Pool worker tasks usage statistics requirements.
  */
 export interface RequiredStatistics {
   runTime: boolean
@@ -42,7 +42,7 @@ export interface RequiredStatistics {
  */
 export interface IWorkerChoiceStrategy {
   /**
-   * Is the pool attached to the strategy dynamic?.
+   * Is the pool bound to the strategy dynamic?.
    */
   readonly isDynamicPool: boolean
   /**