X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fworker-choice-strategy-context.ts;h=8290f89ed9a143a8420a45cb1c5965454bebe35e;hb=fa6f12966fa14931864dcd13596e080d689464b3;hp=b84a8632ffc35a78a71742aa206274997b45eb6d;hpb=0a01b5c3aa58059e7241d4394cf3953779029507;p=poolifier.git diff --git a/src/pools/selection-strategies/worker-choice-strategy-context.ts b/src/pools/selection-strategies/worker-choice-strategy-context.ts index b84a8632..8290f89e 100644 --- a/src/pools/selection-strategies/worker-choice-strategy-context.ts +++ b/src/pools/selection-strategies/worker-choice-strategy-context.ts @@ -60,6 +60,15 @@ export class WorkerChoiceStrategyContext< ) } + /** + * Get the worker choice strategy used in the context. + * + * @returns The worker choice strategy. + */ + public getWorkerChoiceStrategy (): IWorkerChoiceStrategy { + return this.workerChoiceStrategy + } + /** * Set the worker choice strategy to use in the context. *