X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpools%2Fselection-strategies%2Fselection-strategies-types.ts;h=2c6c2e16d6e4d52e7f19841e6d6f331db3d678f9;hb=8b4d450024ef06de939fa82f9746b005696914c0;hp=137c1be7562e50309818763f556651aed2034b04;hpb=6533c3e6b6a95daade8d20577d6b816512e2aeeb;p=poolifier.git diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index 137c1be7..2c6c2e16 100644 --- a/src/pools/selection-strategies/selection-strategies-types.ts +++ b/src/pools/selection-strategies/selection-strategies-types.ts @@ -1,6 +1,3 @@ -import type { IPoolInternal } from '../pool-internal' -import type { IPoolWorker } from '../pool-worker' - /** * Enumeration of worker choice strategies. */ @@ -43,19 +40,7 @@ export interface RequiredStatistics { /** * Worker choice strategy interface. */ -export interface IWorkerChoiceStrategy< - Worker extends IPoolWorker, - Data = unknown, - Response = unknown -> { - /** - * The pool instance. - */ - readonly pool: IPoolInternal - /** - * Is the pool bound to the strategy dynamic?. - */ - readonly isDynamicPool: boolean +export interface IWorkerChoiceStrategy { /** * Required pool tasks usage statistics. */