X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils.ts;h=fc328a6c688e2d85f04a04be0e4874584ad5c57c;hb=95311547b3ec8a54b9e4303bdd3c2c32c9c1e893;hp=d85c5ba58b4988fad867a9b35f9dca5bb5bb2b45;hpb=78099a150dc54d7adab495195fa5f133fd54e114;p=poolifier.git diff --git a/src/utils.ts b/src/utils.ts index d85c5ba5..fc328a6c 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,5 @@ +import type { WorkerChoiceStrategyOptions } from './pools/selection-strategies/selection-strategies-types' + /** * An intentional empty function. */ @@ -6,7 +8,15 @@ export const EMPTY_FUNCTION: () => void = Object.freeze(() => { }) /** - * Returns the median of the given data set. + * Default worker choice strategy options. + */ +export const DEFAULT_WORKER_CHOICE_STRATEGY_OPTIONS: WorkerChoiceStrategyOptions = + { + medRunTime: false + } + +/** + * Compute the median of the given data set. * * @param dataSet - Data set. * @returns The median of the given data set.