X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fselection-strategies%2Fselection-strategies-types.ts;h=114ae8c555141fd08bff0103fcf79d62a65b5f83;hb=a4958de2101f06e7096b83adbca82fcfd532a721;hp=968d2996e0dfd05f7a21404c656010e2bdfcc92b;hpb=138d29a820e8a61d10ba03fe42c5d77596ef788c;p=poolifier.git diff --git a/src/pools/selection-strategies/selection-strategies-types.ts b/src/pools/selection-strategies/selection-strategies-types.ts index 968d2996..114ae8c5 100644 --- a/src/pools/selection-strategies/selection-strategies-types.ts +++ b/src/pools/selection-strategies/selection-strategies-types.ts @@ -78,16 +78,20 @@ export interface IWorkerChoiceStrategy { readonly requiredStatistics: RequiredStatistics /** * Resets strategy internals. + * + * @returns `true` if the reset is successful, `false` otherwise. */ reset: () => boolean /** - * Updates strategy internals. + * Updates worker node strategy internals. * * @returns `true` if the update is successful, `false` otherwise. */ - update: () => boolean + update: (workerNodeKey: number) => boolean /** * Chooses a worker node in the pool and returns its key. + * + * @returns The worker node key. */ choose: () => number /**