X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils.ts;h=fc328a6c688e2d85f04a04be0e4874584ad5c57c;hb=bbeadd16bc03b9199221a7fb5732af46e7867ded;hp=d85c5ba58b4988fad867a9b35f9dca5bb5bb2b45;hpb=3e1f468a6b30654b2ea63f87e3de1e01e808b322;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.