*
* @defaultValue Weights computed automatically given the CPU performance.
*/
- readonly weights?: Record<number, number>
-}
-
-/**
- * Worker choice strategy internal options.
- *
- * @internal
- */
-export interface InternalWorkerChoiceStrategyOptions
- extends WorkerChoiceStrategyOptions {
- /**
- * Number of worker choice retries to perform if no worker is eligible.
- *
- * @defaultValue pool maximum size
- */
- readonly retries?: number
+ weights?: Record<number, number>
}
/**
*
* @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
+ readonly setOptions: (opts: WorkerChoiceStrategyOptions | undefined) => void
}