import { cpus } from 'node:os'
-import type { IPoolInternal } from '../pool-internal'
import type { IWorker } from '../worker'
import { AbstractWorkerChoiceStrategy } from './abstract-worker-choice-strategy'
import type {
RequiredStatistics,
WorkerChoiceStrategyOptions
} from './selection-strategies-types'
+import type { IPool } from '../pool'
/**
* Virtual task runtime.
*
* @typeParam Worker - Type of worker which manages the strategy.
* @typeParam Data - Type of data sent to the worker. This can only be serializable data.
- * @typeParam Response - Type of response of execution. This can only be serializable data.
+ * @typeParam Response - Type of execution response. This can only be serializable data.
*/
export class WeightedRoundRobinWorkerChoiceStrategy<
Worker extends IWorker,
* @param opts - The worker choice strategy options.
*/
public constructor (
- pool: IPoolInternal<Worker, Data, Response>,
+ pool: IPool<Worker, Data, Response>,
opts?: WorkerChoiceStrategyOptions
) {
super(pool, opts)