docs: merge pool internal interface to public
[poolifier.git] / src / pools / selection-strategies / weighted-round-robin-worker-choice-strategy.ts
index c2782e8b2bf844b1a767eafcfe8554b0fc568ec7..f4bac5d76c4e3b669bb5720b99c03b07eabc577d 100644 (file)
@@ -1,5 +1,4 @@
 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 {
@@ -7,6 +6,7 @@ import type {
   RequiredStatistics,
   WorkerChoiceStrategyOptions
 } from './selection-strategies-types'
+import type { IPool } from '../pool'
 
 /**
  * Virtual task runtime.
@@ -61,7 +61,7 @@ export class WeightedRoundRobinWorkerChoiceStrategy<
    * @param opts - The worker choice strategy options.
    */
   public constructor (
-    pool: IPoolInternal<Worker, Data, Response>,
+    pool: IPool<Worker, Data, Response>,
     opts?: WorkerChoiceStrategyOptions
   ) {
     super(pool, opts)