X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=a609d859bfb1757fb5c7beacb7dc657f3182dd43;hb=c0eb19668d003c60eb90781a1c91f2743442ed83;hp=1c910446e4d5bddd560bce69f3da8d72ff1a79fc;hpb=15d6dfaf877ec6a99e2bde48cb3c8a9e8671c075;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 1c910446..a609d859 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is +
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -81,7 +81,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    afterTaskExecutionHook afterWorkerSetup beforeTaskExecutionHook -chooseWorkerNode +createAndSetupDynamicWorker createAndSetupWorker createWorker destroy @@ -133,7 +133,7 @@ When the maximum number of threads is reached and workers are busy, an event is
  • -
    opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
    +
    opts: ThreadPoolOptions = {}

    Options for this dynamic thread pool.

  • @@ -141,7 +141,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

    @@ -159,7 +159,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:55
  • filePath: string
    @@ -168,7 +168,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:88
  • max: number
    @@ -176,7 +176,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,16 +185,16 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:87
  • -
    opts: PoolOptions<ThreadWorkerWithMessageChannel>
    -

    Options for the pool.

    + +

    Options for this fixed thread pool.

    +
  • Defined in src/pools/thread/fixed.ts:59
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -208,17 +208,16 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:65
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    -

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:73
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -227,7 +226,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:52
  • Accessors

    @@ -242,7 +241,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:47
  • +
  • Defined in src/pools/abstract-pool.ts:391
  • +
  • Defined in src/pools/abstract-pool.ts:240
  • +
  • Defined in src/pools/thread/dynamic.ts:42
  • +
  • Defined in src/pools/thread/fixed.ts:122
  • +
  • Defined in src/pools/thread/dynamic.ts:37
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • Methods

    @@ -336,7 +335,7 @@ Can be overridden.

  • -
    message: MessageValue<Response, Worker | MessagePort>
    +
    message: MessageValue<Response, unknown, Worker | MessagePort>

    The received message.

  • @@ -344,7 +343,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:505
  • +
  • Defined in src/pools/thread/fixed.ts:102
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:489
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:736
  • +
  • Defined in src/pools/abstract-pool.ts:703
  • +
  • Defined in src/pools/thread/fixed.ts:94
  • +
  • Defined in src/pools/abstract-pool.ts:450
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/abstract-pool.ts:356
  • +
  • Defined in src/pools/abstract-pool.ts:416
  • +
  • Defined in src/pools/abstract-pool.ts:407
  • +
  • Defined in src/pools/thread/fixed.ts:65
  • Returns void

    Returns void

    +
  • Defined in src/pools/thread/fixed.ts:86
  • @@ -595,7 +603,7 @@ Can be overridden.

    +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:368
  • +
  • Defined in src/pools/abstract-pool.ts:323
  • +
  • Defined in src/pools/abstract-pool.ts:345
  • +
  • Defined in src/pools/abstract-pool.ts:473
  • Returns void

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

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