fix: ensure worker choice strategy wait for worker nodes readiness
[poolifier.git] / src / pools / selection-strategies / selection-strategies-types.ts
index 5d490638ad2dbb9348cad7318b2258b83cbdad95..6990e65fcf365e340b118f2b6fcc0a00c2214a57 100644 (file)
@@ -208,4 +208,10 @@ export interface IWorkerChoiceStrategy {
    * @param opts - The worker choice strategy options.
    */
   readonly setOptions: (opts: WorkerChoiceStrategyOptions) => void
+  /**
+   * Whether the pool has worker nodes ready or not.
+   *
+   * @returns Whether the pool has worker nodes ready or not.
+   */
+  readonly hasPoolWorkerNodesReady: () => boolean
 }