X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fselection-strategies-types.ts;h=2c6c2e16d6e4d52e7f19841e6d6f331db3d678f9;hb=8b4d450024ef06de939fa82f9746b005696914c0;hp=bf364f923d033e24223afed35b07f3bdaaf1517b;hpb=164d950a1bcdc39b4762294c1581e8befbb344e2;p=poolifier.git diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index bf364f92..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 attached to the strategy dynamic?. - */ - readonly isDynamicPool: boolean +export interface IWorkerChoiceStrategy { /** * Required pool tasks usage statistics. */