perf: build worker choice strategies policy and task equirements on
[poolifier.git] / src / pools / pool.ts
index 82f3d8d91f05fd4f921a7feb17a901a44e84f966..ccb4b5b94ef858ad00c0eb5a28c490651854489e 100644 (file)
@@ -348,10 +348,11 @@ export interface IPool<
    * Sets the worker choice strategy options in this pool.
    *
    * @param workerChoiceStrategyOptions - The worker choice strategy options.
+   * @returns `true` if the worker choice strategy options were set, `false` otherwise.
    */
   readonly setWorkerChoiceStrategyOptions: (
     workerChoiceStrategyOptions: WorkerChoiceStrategyOptions
-  ) => void
+  ) => boolean
   /**
    * Enables/disables the worker node tasks queue in this pool.
    *