X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=20c167994831f58546e1c8f97e655fdec21469ff;hb=1ed7fb6c99f2fcb5f319d9c1fa2aefc5434f82e4;hp=e9f33e6bacfeac5a43afe2d134ce5ad9a3b9fc83;hpb=d93988cdbc3eb55747301602bfa03d8543223c71;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index e9f33e6b..20c16799 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,4 +1,4 @@ -DynamicThreadPool | poolifier - v2.7.4
+DynamicThreadPool | poolifier - v3.0.2
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.7.4
+
  • The search index is not available
  • poolifier - v3.0.2
    @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    • DynamicThreadPool
    +
  • Defined in src/pools/thread/dynamic.ts:16
  • @@ -92,6 +92,7 @@ When the maximum number of threads is reached and workers are busy, an event is destroyWorkerNode enableTasksQueue execute +flagWorkerNodeAsNotReady flushTasksQueue getWorkerInfo hasTaskFunction @@ -111,7 +112,7 @@ When the maximum number of threads is reached and workers are busy, an event is setWorkerChoiceStrategyOptions setupHook start -workerListener +workerMessageListener

    Constructors

    @@ -156,12 +157,12 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:28
  • Properties

    -
    emitter?: __module | EventEmitterAsyncResource
    +
    emitter?: EventEmitterAsyncResource

    Event emitter integrated with async resource on which events can be listened to. The async tracking tooling identifier is poolifier:<PoolType>-<WorkerType>-pool.

    Events that can currently be listened to:

    @@ -178,7 +179,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:74
  • filePath: string
    @@ -187,7 +188,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:129
  • max: number
    @@ -196,7 +197,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/thread/dynamic.ts:30
  • numberOfWorkers: number
    @@ -205,7 +206,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:128
  • @@ -214,7 +215,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -228,7 +229,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -237,7 +238,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:94
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -246,7 +247,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:71
  • Accessors

    @@ -261,7 +262,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/thread/dynamic.ts:44
    • @@ -274,7 +275,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:662
    • @@ -286,7 +287,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:272
    • @@ -298,7 +299,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:485
    • @@ -310,7 +311,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:478
    • @@ -322,7 +323,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:430
    • @@ -335,7 +336,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/thread/dynamic.ts:39
    • @@ -348,7 +349,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/abstract-pool.ts:447
    • @@ -360,7 +361,7 @@ The async tracking tooling identifier is poolifier:<PoolType>-<Wo
    +
  • Defined in src/pools/thread/fixed.ts:150
  • Methods

    @@ -393,7 +394,7 @@ If a task function with the same name already exists, it will be overwritten.

    +
  • Defined in src/pools/abstract-pool.ts:807
  • +
  • Defined in src/pools/abstract-pool.ts:1044
  • +
  • Defined in src/pools/abstract-pool.ts:1357
  • +
  • Defined in src/pools/abstract-pool.ts:1014
  • +
  • Defined in src/pools/abstract-pool.ts:1261
  • +
  • Defined in src/pools/abstract-pool.ts:1217
  • +
  • Defined in src/pools/thread/fixed.ts:137
  • +
  • Defined in src/pools/thread/fixed.ts:127
  • +
  • Defined in src/pools/abstract-pool.ts:951
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:566
  • +
  • Defined in src/pools/abstract-pool.ts:881
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:1693
  • +
  • Defined in src/pools/abstract-pool.ts:1605
  • +
  • Defined in src/pools/abstract-pool.ts:794
  • +
  • Defined in src/pools/abstract-pool.ts:1651
  • +
  • Defined in src/pools/abstract-pool.ts:678
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/abstract-pool.ts:846
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • +
  • Defined in src/pools/thread/fixed.ts:107
  • +
  • Defined in src/pools/abstract-pool.ts:830
  • +
  • Defined in src/pools/abstract-pool.ts:962
  • +
  • Defined in src/pools/thread/fixed.ts:92
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:859
  • +
  • Defined in src/pools/abstract-pool.ts:580
  • +
  • Defined in src/pools/abstract-pool.ts:533
  • +
  • Defined in src/pools/abstract-pool.ts:552
  • +
  • Defined in src/pools/abstract-pool.ts:998
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:935
  • +
    +
      - +
    • -

      This method is the listener registered for each worker message.

      -
      -

      Returns ((message) => void)

      The listener function to execute when a message is received from a worker.

      - -
        -
      • -
          -
        • (message): void
        • -
        • -

          This method is the listener registered for each worker message.

          +

          This method is the message listener registered on each worker.

          Parameters

          -

          Returns void

          The listener function to execute when a message is received from a worker.

          - -
      +

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1519
  • @@ -1105,6 +1109,7 @@ Can be overridden.

  • destroyWorkerNode
  • enableTasksQueue
  • execute
  • +
  • flagWorkerNodeAsNotReady
  • flushTasksQueue
  • getWorkerInfo
  • hasTaskFunction
  • @@ -1124,9 +1129,9 @@ Can be overridden.

  • setWorkerChoiceStrategyOptions
  • setupHook
  • start
  • -
  • workerListener
  • +
  • workerMessageListener
  • Generated using TypeDoc

    -
    \ No newline at end of file +
    \ No newline at end of file