X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=c95ecd3e4dabd72c525d8a61fbaa911ec1a44f4c;hb=c64c17b070cb338e7301c38643bb529be8fa0fc3;hp=9b15be25327b4eecb011e693535a3c48d755cfb5;hpb=ac2cb9e206b5e67cc52124eb334507f5dce230d5;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 9b15be25..c95ecd3e 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -1,4 +1,4 @@ -IWorkerChoiceStrategy | poolifier
+IWorkerChoiceStrategy | poolifier - v2.6.32
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.32
    @@ -14,7 +14,7 @@ -

    Interface IWorkerChoiceStrategy

    +

    Interface IWorkerChoiceStrategyInternal

    Worker choice strategy interface.

    @@ -24,7 +24,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • @@ -43,24 +43,25 @@

    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)

    Type declaration

    @@ -83,9 +84,9 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:202
  • - +
    reset: (() => boolean)

    Type declaration

    @@ -100,9 +101,9 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
  • - +
    setOptions: ((opts) => void)

    Type declaration

    @@ -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,9 +141,9 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • - +
    update: ((workerNodeKey) => boolean)

    Type declaration

    @@ -162,7 +163,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188