X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=26289e94772a1f37b1abd17a9e09150e8bc9c459;hb=3557031d88b5ff00ea86695728b3ba3af46e9faa;hp=9f0a4654cc89de0ae8ab7f0b2b13786edd4f14de;hpb=aac8863d208eadcb0ecb33dc44d045c26f5a444f;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 9f0a4654..26289e94 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,4 +1,4 @@ -DynamicThreadPool | poolifier
+DynamicThreadPool | poolifier - v2.6.12
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.12
    @@ -30,12 +30,12 @@ When the maximum number of threads is reached and workers are busy, an event is
    • Data = unknown

      -

      Type of data sent to the worker. This can only be serializable data.

      +

      Type of data sent to the worker. This can only be structured-cloneable data.

    • Response = unknown

      -

      Type of execution response. This can only be serializable data.

      +

      Type of execution response. This can only be structured-cloneable data.

    @@ -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:15
  • @@ -73,7 +73,10 @@ When the maximum number of threads is reached and workers are busy, an event is info maxSize minSize +ready +starting type +utilization worker
    @@ -81,7 +84,8 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterTaskExecutionHook afterWorkerSetup beforeTaskExecutionHook -chooseWorkerNode +checkDynamicPoolSize +createAndSetupDynamicWorker createAndSetupWorker createWorker destroy @@ -90,7 +94,6 @@ When the maximum number of threads is reached and workers are busy, an event is execute internalBusy isMain -registerWorkerMessageListener sendToWorker setTasksQueueOptions setWorkerChoiceStrategy @@ -141,7 +144,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:27
  • Properties

    @@ -150,8 +153,9 @@ When the maximum number of threads is reached and workers are busy, an event is

    Emitter on which events can be listened to.

    Events that can currently be listened to:

      -
    • 'full': Emitted when the pool is dynamic and full.
    • -
    • 'busy': Emitted when the pool is busy.
    • +
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • +
    • 'ready': Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.
    • +
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    @@ -159,7 +163,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:59
  • filePath: string
    @@ -168,7 +172,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:97
  • max: number
    @@ -176,7 +180,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:29
  • numberOfWorkers: number
    @@ -185,7 +189,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:96
  • @@ -194,10 +198,10 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:46
  • -
    promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...

    The execution response promise map.

    +
  • Defined in src/pools/abstract-pool.ts:69
  • -
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    +
    workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    +
  • Defined in src/pools/abstract-pool.ts:77
  • -
    workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

    +
  • Defined in src/pools/abstract-pool.ts:56
  • Accessors

    @@ -241,7 +245,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:563
  • +
  • Defined in src/pools/abstract-pool.ts:269
  • +
  • Defined in src/pools/thread/dynamic.ts:43
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • +
    + +
    +
    + +
    +
  • Defined in src/pools/thread/dynamic.ts:38
  • +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:81
  • Methods

    @@ -330,12 +365,12 @@ Can be overridden.

    Parameters

    @@ -343,20 +378,20 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:689
  • +
  • Defined in src/pools/abstract-pool.ts:924
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:668
  • +
    + +
    +
    +
    +
  • Defined in src/pools/abstract-pool.ts:1007
  • +
  • Defined in src/pools/abstract-pool.ts:941
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:623
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:528
  • +
  • Defined in src/pools/abstract-pool.ts:588
  • +
  • Defined in src/pools/abstract-pool.ts:579
  • -
    - -
    +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:540
  • +
  • Defined in src/pools/abstract-pool.ts:498
  • +
  • Defined in src/pools/abstract-pool.ts:517
  • +
  • Defined in src/pools/abstract-pool.ts:652
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:1038
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file