X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fselection-strategies-types.ts;h=21e4129eeca6d9e09619647ab7b80abbd299032c;hb=681fa0b0307b869ae70caf1cb6e53701b699f8af;hp=499b8e489e744a3fad453391b8e4e664c90eac94;hpb=6ffb8e34e2276cc0e0f5576749e190d1d914b7d4;p=poolifier.git diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index 499b8e48..21e4129e 100644 --- a/src/pools/selection-strategies/selection-strategies-types.ts +++ b/src/pools/selection-strategies/selection-strategies-types.ts @@ -30,7 +30,7 @@ export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies /** * Pool tasks usage statistics requirements. */ -export type RequiredStatistics = { +export interface RequiredStatistics { runTime: boolean } @@ -51,9 +51,9 @@ export interface IWorkerChoiceStrategy { /** * Resets strategy internals (counters, statistics, etc.). */ - reset(): boolean + reset: () => boolean /** * Chooses a worker in the pool. */ - choose(): Worker + choose: () => Worker }