X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=73ad5d3cfbee6402d32a88eced27bcd98fe51497;hb=f2d2c4a40a1d1652ba5fb0dee4b6aa3387321c92;hp=7f1765e6f14b56862294d2557937e6283a7050ff;hpb=b881e803f1a32ce8d8218d3ba3638ad317ae87bc;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 7f1765e6..73ad5d3c 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -1,4 +1,4 @@ -IWorkerChoiceStrategy | poolifier - v2.6.19
+IWorkerChoiceStrategy | poolifier - v2.6.34
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.19
+
  • The search index is not available
  • poolifier - v2.6.34
    @@ -24,7 +24,7 @@
    • IWorkerChoiceStrategy
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • @@ -44,21 +44,22 @@

    Properties

    -
    choose: (() => number)
    +
    choose: (() => undefined | number)

    Type declaration

      • -
      • (): number
      • +
      • (): undefined | number
      • -

        Chooses a worker node in the pool and returns its key.

        +

        Chooses a worker node in the pool and returns its key. +If the worker node is not eligible, undefined is returned.

        -

        Returns number

        The worker node key.

        +

        Returns undefined | number

        The worker node key or undefined.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:195
  • remove: ((workerNodeKey) => boolean)
    @@ -83,7 +84,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:202
  • reset: (() => boolean)
    @@ -100,7 +101,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
  • setOptions: ((opts) => void)
    @@ -124,7 +125,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:208
  • strategyPolicy: StrategyPolicy
    @@ -132,7 +133,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -140,7 +141,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • update: ((workerNodeKey) => boolean)
    @@ -162,7 +163,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188