X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=66f365d333157ae357b5d5c65831a7272cd20251;hb=ba92b02f642f229cb927ab526148f10107831471;hp=66ad9b5b6dc400a2edc002a84b78044da6559b57;hpb=a75da00c7b8dbbb148d2cf2472ce73e4201d9a4a;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 66ad9b5b..66f365d3 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -18,7 +18,7 @@

A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.

This thread pool creates new threads when the others are busy, up to the maximum number of threads. -When the maximum number of threads is reached, an event is emitted. If you want to listen to this event, use the pool's emitter.

+When the maximum number of threads is reached and workers are busy, an event is emitted. If you want to listen to this event, use the pool's emitter.

Author

Alessandro Pio Ardizio

@@ -42,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -56,7 +56,7 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Properties

    emitter? filePath -max +max numberOfWorkers opts promiseResponseMap @@ -66,7 +66,8 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Accessors

    @@ -81,7 +82,7 @@ When the maximum number of threads is reached, an event is emitted. If you want destroyWorker execute findFreeWorkerKey -internalGetBusyStatus +internalBusy isMain registerWorkerMessageListener removeWorker @@ -128,7 +129,7 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Returns DynamicThreadPool<Data, Response>

    +
  • Defined in src/pools/thread/dynamic.ts:29
  • Properties

    @@ -138,7 +139,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:32
  • filePath: string
    @@ -146,14 +147,14 @@ When the maximum number of threads is reached, an event is emitted. If you want
    -
    - +
  • Defined in src/pools/abstract-pool.ts:67
  • +
    +
    max: number

    Maximum number of threads that can be created by this pool.

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -161,7 +162,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:66
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -169,7 +170,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:68
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -182,7 +183,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:42
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -191,7 +192,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:52
  • workers: WorkerType<ThreadWorkerWithMessageChannel>[] = []
    @@ -199,7 +200,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:29
  • Accessors

    @@ -212,18 +213,29 @@ When the maximum number of threads is reached, an event is emitted. If you want

    Returns boolean

    -
    - -
    +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:153
  • +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -259,7 +271,7 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:267
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:256
  • +
  • Defined in src/pools/abstract-pool.ts:307
  • +
  • Defined in src/pools/abstract-pool.ts:352
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:222
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:207
  • -
    - +
  • Defined in src/pools/abstract-pool.ts:200
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:192
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • +
  • Defined in src/pools/thread/fixed.ts:70
  • +
  • Defined in src/pools/abstract-pool.ts:294
  • +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:168
  • +
  • Defined in src/pools/abstract-pool.ts:241
  • +
  • Defined in src/pools/abstract-pool.ts:381