From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 6 Sep 2023 21:20:06 +0000 (+0000) Subject: docs: generate documentation X-Git-Tag: v2.6.43~23 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=665702eef3ad8153279b344e0276687f7f50c10f;p=poolifier.git docs: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 0ca50a44..dec90f6f 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -1,4 +1,4 @@ -AbstractPool | poolifier - v2.6.41
+AbstractPool | poolifier - v2.6.42
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.41
+
  • The search index is not available
  • poolifier - v2.6.42
    @@ -49,7 +49,7 @@
    • IPool<Worker, Data, Response>
    +
  • Defined in src/pools/abstract-pool.ts:59
  • @@ -191,7 +191,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

    @@ -212,7 +212,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -220,7 +220,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:117
  • max?: number
    @@ -228,7 +228,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:93
  • numberOfWorkers: number
    @@ -236,7 +236,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:116
  • opts: PoolOptions<Worker>
    @@ -244,7 +244,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:118
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -257,7 +257,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • startTimestamp: number
    @@ -265,7 +265,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:106
  • started: boolean
    @@ -273,7 +273,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:102
  • starting: boolean
    @@ -281,7 +281,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:98
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -289,7 +289,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -298,7 +298,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • Accessors

    @@ -312,7 +312,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:698
  • +
  • Defined in src/pools/abstract-pool.ts:689
  • +
  • Defined in src/pools/abstract-pool.ts:350
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:555
  • +
  • Defined in src/pools/abstract-pool.ts:507
  • +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/abstract-pool.ts:524
  • +
  • Defined in src/pools/abstract-pool.ts:550
  • Methods

    @@ -428,7 +428,7 @@

    Throws

    https://nodejs.org/api/errors.html#class-error If the added worker node is not found.

    +
  • Defined in src/pools/abstract-pool.ts:1418
  • +
  • Defined in src/pools/abstract-pool.ts:888
  • +
  • Defined in src/pools/abstract-pool.ts:1162
  • +
  • Defined in src/pools/abstract-pool.ts:858
  • Returns TasksQueueOptions

    +
  • Defined in src/pools/abstract-pool.ts:672
  • +
  • Defined in src/pools/abstract-pool.ts:1393
  • +
  • Defined in src/pools/abstract-pool.ts:1381
  • +
  • Defined in src/pools/abstract-pool.ts:1387
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:187
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:156
  • +
  • Defined in src/pools/abstract-pool.ts:572
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:169
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:213
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:295
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:241
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:251
  • +
  • Defined in src/pools/abstract-pool.ts:1015
  • +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/abstract-pool.ts:1054
  • Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:1483
  • +
  • Defined in src/pools/abstract-pool.ts:803
  • +
  • Defined in src/pools/abstract-pool.ts:834
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1477
  • +
  • Defined in src/pools/abstract-pool.ts:747
  • +
  • Defined in src/pools/abstract-pool.ts:1471
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1491
  • +
  • Defined in src/pools/abstract-pool.ts:1501
  • +
  • Defined in src/pools/abstract-pool.ts:1407
  • +
  • Defined in src/pools/abstract-pool.ts:591
  • +
  • Defined in src/pools/abstract-pool.ts:603
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1353
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1339
  • +
  • Defined in src/pools/abstract-pool.ts:1456
  • +
  • Defined in src/pools/abstract-pool.ts:1449
  • +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/abstract-pool.ts:849
  • +
  • Defined in src/pools/abstract-pool.ts:726
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1202
  • +
  • Defined in src/pools/abstract-pool.ts:1149
  • +
  • Defined in src/pools/abstract-pool.ts:1440
  • Returns Promise<void>

    +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/abstract-pool.ts:1182
  • +
  • Defined in src/pools/abstract-pool.ts:1189
  • +
  • Defined in src/pools/abstract-pool.ts:1043
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:666
  • +
  • Defined in src/pools/abstract-pool.ts:610
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:1032
  • Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:738
  • +
  • Defined in src/pools/abstract-pool.ts:921
  • +
  • Defined in src/pools/abstract-pool.ts:337
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1246
  • Returns number

    +
  • Defined in src/pools/abstract-pool.ts:1487
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1278
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:975
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:948
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:930
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1227
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:962
  • +
  • Defined in src/pools/abstract-pool.ts:1321
  • @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:49
  • @@ -154,7 +154,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:83
  • Properties

    @@ -164,7 +164,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:73
  • id: number
    @@ -172,7 +172,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:57
  • isMain: boolean
    @@ -180,7 +180,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:85
  • lastTaskTimestamp: number
    @@ -188,7 +188,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:65
  • mainWorker: MainWorker
    @@ -196,7 +196,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:86
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -204,7 +204,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:88
  • statistics: WorkerStatistics
    @@ -212,7 +212,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:69
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -220,7 +220,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:61
  • Methods

    @@ -254,7 +254,7 @@ If a task function with the same name already exists, it is replaced.

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the fn parameter is not a function.

    +
  • Defined in src/worker/abstract-worker.ts:193
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:576
  • +
  • Defined in src/worker/abstract-worker.ts:419
  • +
  • Defined in src/worker/abstract-worker.ts:385
  • +
  • Defined in src/worker/abstract-worker.ts:600
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:308
  • +
  • Defined in src/worker/abstract-worker.ts:132
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:106
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:101
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:585
  • +
  • Defined in src/worker/abstract-worker.ts:434
  • +
  • Defined in src/worker/abstract-worker.ts:466
  • +
  • Defined in src/worker/abstract-worker.ts:351
  • +
  • Defined in src/worker/abstract-worker.ts:322
  • +
  • Defined in src/worker/abstract-worker.ts:177
  • +
  • Defined in src/worker/abstract-worker.ts:255
  • +
  • Defined in src/worker/abstract-worker.ts:329
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:476
  • +
  • Defined in src/worker/abstract-worker.ts:541
  • +
  • Defined in src/worker/abstract-worker.ts:504
  • +
  • Defined in src/worker/abstract-worker.ts:453
  • +
  • Defined in src/worker/abstract-worker.ts:446
  • +
  • Defined in src/worker/abstract-worker.ts:285
  • +
  • Defined in src/worker/abstract-worker.ts:398
  • +
  • Defined in src/worker/abstract-worker.ts:409
  • +
  • Defined in src/worker/abstract-worker.ts:606
  • @@ -31,7 +31,7 @@
    • CircularArray
    +
  • Defined in src/circular-array.ts:10
  • @@ -113,7 +113,7 @@

    Returns CircularArray<T>

    +
  • Defined in src/circular-array.ts:13
  • Properties

    @@ -153,7 +153,7 @@ when they will be absent when used in a 'with' statement.

    size: number
    +
  • Defined in src/circular-array.ts:11
  • [species]: ArrayConstructor
    +
  • Defined in src/circular-array.ts:100
  • +
  • Defined in src/circular-array.ts:41
  • +
  • Defined in src/circular-array.ts:92
  • +
  • Defined in src/circular-array.ts:96
  • +
  • Defined in src/circular-array.ts:23
  • Returns void

    +
  • Defined in src/circular-array.ts:80
  • +
  • Defined in src/circular-array.ts:56
  • +
  • Defined in src/circular-array.ts:32
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    • ClusterWorker
    +
  • Defined in src/worker/cluster-worker.ts:21
  • @@ -127,7 +127,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/cluster-worker.ts:31
  • Properties

    @@ -138,7 +138,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:73
  • isMain: boolean
    @@ -147,7 +147,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:85
  • lastTaskTimestamp: number
    @@ -156,7 +156,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:65
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -165,7 +165,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:88
  • statistics: WorkerStatistics
    @@ -174,7 +174,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:69
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -183,7 +183,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:61
  • Accessors

    @@ -197,7 +197,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/cluster-worker.ts:65
  • Methods

    @@ -232,7 +232,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:193
  • +
  • Defined in src/worker/abstract-worker.ts:434
  • +
  • Defined in src/worker/abstract-worker.ts:466
  • +
  • Defined in src/worker/abstract-worker.ts:351
  • +
  • Defined in src/worker/cluster-worker.ts:45
  • +
  • Defined in src/worker/abstract-worker.ts:177
  • +
  • Defined in src/worker/abstract-worker.ts:255
  • +
  • Defined in src/worker/abstract-worker.ts:329
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:476
  • +
  • Defined in src/worker/abstract-worker.ts:541
  • +
  • Defined in src/worker/abstract-worker.ts:504
  • +
  • Defined in src/worker/abstract-worker.ts:453
  • +
  • Defined in src/worker/cluster-worker.ts:70
  • +
  • Defined in src/worker/abstract-worker.ts:285
  • @@ -33,7 +33,7 @@ Implemented with a doubly linked list.

    • Deque
    +
  • Defined in src/deque.ts:26
  • @@ -77,14 +77,14 @@ Implemented with a doubly linked list.

    T

    Returns Deque<T>

    +
  • Defined in src/deque.ts:34
  • Properties

    head?: Node<T>
    +
  • Defined in src/deque.ts:27
  • maxSize: number
    @@ -92,7 +92,7 @@ Implemented with a doubly linked list.

    +
  • Defined in src/deque.ts:32
  • size: number
    @@ -100,12 +100,12 @@ Implemented with a doubly linked list.

    +
  • Defined in src/deque.ts:30
  • tail?: Node<T>
    +
  • Defined in src/deque.ts:28
  • Methods

    @@ -121,7 +121,7 @@ Implemented with a doubly linked list.

    See

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols

    +
  • Defined in src/deque.ts:144
  • +
  • Defined in src/deque.ts:170
  • +
  • Defined in src/deque.ts:131
  • +
  • Defined in src/deque.ts:194
  • +
  • Defined in src/deque.ts:116
  • +
  • Defined in src/deque.ts:124
  • +
  • Defined in src/deque.ts:77
  • +
  • Defined in src/deque.ts:44
  • +
  • Defined in src/deque.ts:97
  • +
  • Defined in src/deque.ts:61
  • @@ -45,7 +45,7 @@ When the maximum number of workers is reached and workers are busy, an event is +
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -150,7 +150,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:27
  • Properties

    @@ -171,7 +171,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -180,7 +180,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:117
  • max: number
    @@ -189,7 +189,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:29
  • numberOfWorkers: number
    @@ -198,7 +198,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:116
  • @@ -207,7 +207,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -221,7 +221,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -230,7 +230,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -239,7 +239,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:65
  • Accessors

    @@ -254,7 +254,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:43
    • @@ -267,7 +267,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:689
    • @@ -279,7 +279,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:350
    • @@ -291,7 +291,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:562
    • @@ -303,7 +303,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:555
    • @@ -315,7 +315,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:507
    • @@ -328,7 +328,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:38
    • @@ -341,7 +341,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:524
    • @@ -353,7 +353,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:119
  • Methods

    @@ -381,7 +381,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:888
  • +
  • Defined in src/pools/abstract-pool.ts:1162
  • +
  • Defined in src/pools/abstract-pool.ts:858
  • +
  • Defined in src/pools/abstract-pool.ts:187
  • +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/abstract-pool.ts:803
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • +
  • Defined in src/pools/abstract-pool.ts:747
  • +
  • Defined in src/pools/abstract-pool.ts:1491
  • +
  • Defined in src/pools/abstract-pool.ts:1407
  • +
  • Defined in src/pools/abstract-pool.ts:1449
  • +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:726
  • +
  • Defined in src/pools/cluster/fixed.ts:101
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/cluster/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:610
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1321
  • @@ -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
  • @@ -150,7 +150,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

    @@ -171,7 +171,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -180,7 +180,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:117
  • max: number
    @@ -189,7 +189,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
    @@ -198,7 +198,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:116
  • @@ -207,7 +207,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -221,7 +221,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -230,7 +230,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -239,7 +239,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:65
  • Accessors

    @@ -254,7 +254,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:43
    • @@ -267,7 +267,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:689
    • @@ -279,7 +279,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:350
    • @@ -291,7 +291,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:562
    • @@ -303,7 +303,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:555
    • @@ -315,7 +315,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:507
    • @@ -328,7 +328,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/dynamic.ts:38
    • @@ -341,7 +341,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:524
    • @@ -353,7 +353,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/thread/fixed.ts:130
  • Methods

    @@ -381,7 +381,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:888
  • +
  • Defined in src/pools/abstract-pool.ts:1162
  • +
  • Defined in src/pools/abstract-pool.ts:858
  • +
  • Defined in src/pools/abstract-pool.ts:187
  • +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • +
  • Defined in src/pools/abstract-pool.ts:803
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • +
  • Defined in src/pools/abstract-pool.ts:747
  • +
  • Defined in src/pools/abstract-pool.ts:1491
  • +
  • Defined in src/pools/abstract-pool.ts:1407
  • +
  • Defined in src/pools/abstract-pool.ts:1449
  • +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/abstract-pool.ts:726
  • +
  • Defined in src/pools/thread/fixed.ts:107
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:80
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:610
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:1321
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -145,7 +145,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    @@ -166,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -175,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:117
  • max?: number
    @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:93
  • numberOfWorkers: number
    @@ -193,7 +193,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:116
  • @@ -202,7 +202,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -216,7 +216,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -225,7 +225,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -234,7 +234,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • Accessors

    @@ -249,7 +249,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:124
  • +
  • Defined in src/pools/abstract-pool.ts:689
  • +
  • Defined in src/pools/abstract-pool.ts:350
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:555
  • +
  • Defined in src/pools/abstract-pool.ts:507
  • +
  • Defined in src/pools/cluster/fixed.ts:114
  • +
  • Defined in src/pools/abstract-pool.ts:524
  • +
  • Defined in src/pools/cluster/fixed.ts:119
  • Methods

    @@ -376,7 +376,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:888
  • +
  • Defined in src/pools/abstract-pool.ts:1162
  • +
  • Defined in src/pools/abstract-pool.ts:858
  • +
  • Defined in src/pools/abstract-pool.ts:187
  • +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/abstract-pool.ts:803
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • +
  • Defined in src/pools/abstract-pool.ts:747
  • +
  • Defined in src/pools/abstract-pool.ts:1491
  • +
  • Defined in src/pools/abstract-pool.ts:1407
  • +
  • Defined in src/pools/abstract-pool.ts:1449
  • +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:726
  • +
  • Defined in src/pools/cluster/fixed.ts:101
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/cluster/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:610
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1321
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/thread/fixed.ts:35
  • @@ -145,7 +145,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:46
  • Properties

    @@ -166,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • filePath: string
    @@ -175,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:117
  • max?: number
    @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:93
  • numberOfWorkers: number
    @@ -193,7 +193,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:116
  • @@ -202,7 +202,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:49
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -216,7 +216,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:78
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -225,7 +225,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:84
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -234,7 +234,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:65
  • Accessors

    @@ -249,7 +249,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:135
  • +
  • Defined in src/pools/abstract-pool.ts:689
  • +
  • Defined in src/pools/abstract-pool.ts:350
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:555
  • +
  • Defined in src/pools/abstract-pool.ts:507
  • +
  • Defined in src/pools/thread/fixed.ts:125
  • +
  • Defined in src/pools/abstract-pool.ts:524
  • +
  • Defined in src/pools/thread/fixed.ts:130
  • Methods

    @@ -376,7 +376,7 @@ Can be overridden.

    +
  • Defined in src/pools/abstract-pool.ts:888
  • +
  • Defined in src/pools/abstract-pool.ts:1162
  • +
  • Defined in src/pools/abstract-pool.ts:858
  • +
  • Defined in src/pools/abstract-pool.ts:187
  • +
  • Defined in src/pools/abstract-pool.ts:1105
  • +
  • Defined in src/pools/abstract-pool.ts:1061
  • +
  • Defined in src/pools/thread/fixed.ts:117
  • +
  • Defined in src/pools/abstract-pool.ts:803
  • +
  • Defined in src/pools/thread/fixed.ts:60
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • +
  • Defined in src/pools/abstract-pool.ts:747
  • +
  • Defined in src/pools/abstract-pool.ts:1491
  • +
  • Defined in src/pools/abstract-pool.ts:1407
  • +
  • Defined in src/pools/abstract-pool.ts:1449
  • +
  • Defined in src/pools/abstract-pool.ts:705
  • +
  • Defined in src/pools/thread/fixed.ts:55
  • +
  • Defined in src/pools/abstract-pool.ts:726
  • +
  • Defined in src/pools/thread/fixed.ts:107
  • +
  • Defined in src/pools/abstract-pool.ts:813
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:80
  • +
  • Defined in src/pools/abstract-pool.ts:655
  • +
  • Defined in src/pools/abstract-pool.ts:610
  • +
  • Defined in src/pools/abstract-pool.ts:629
  • +
  • Defined in src/pools/abstract-pool.ts:842
  • +
  • Defined in src/pools/abstract-pool.ts:1321
  • @@ -32,7 +32,7 @@ +
  • Defined in src/deque.ts:9
  • @@ -67,24 +67,24 @@
    data: T

    Returns Node<T>

    +
  • Defined in src/deque.ts:14
  • Properties

    data: T
    +
  • Defined in src/deque.ts:10
  • next?: Node<T>
    +
  • Defined in src/deque.ts:11
  • prev?: Node<T>
    +
  • Defined in src/deque.ts:12
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/pool.ts:39
  • @@ -917,7 +917,7 @@ special handling:

  • once
  • setMaxListeners
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:26
  • @@ -128,7 +128,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:40
  • Properties

    @@ -139,7 +139,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:73
  • isMain: boolean
    @@ -148,7 +148,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:85
  • lastTaskTimestamp: number
    @@ -157,7 +157,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:65
  • opts: WorkerOptions = DEFAULT_WORKER_OPTIONS
    @@ -166,7 +166,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:88
  • port: MessagePort
    @@ -174,7 +174,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:33
  • statistics: WorkerStatistics
    @@ -183,7 +183,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:69
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -192,7 +192,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:61
  • Accessors

    @@ -206,7 +206,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:86
  • Methods

    @@ -241,7 +241,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:193
  • +
  • Defined in src/worker/abstract-worker.ts:434
  • +
  • Defined in src/worker/thread-worker.ts:96
  • +
  • Defined in src/worker/thread-worker.ts:79
  • +
  • Defined in src/worker/thread-worker.ts:54
  • +
  • Defined in src/worker/abstract-worker.ts:177
  • +
  • Defined in src/worker/abstract-worker.ts:255
  • +
  • Defined in src/worker/abstract-worker.ts:329
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:476
  • +
  • Defined in src/worker/abstract-worker.ts:541
  • +
  • Defined in src/worker/abstract-worker.ts:504
  • +
  • Defined in src/worker/abstract-worker.ts:453
  • +
  • Defined in src/worker/thread-worker.ts:91
  • +
  • Defined in src/worker/abstract-worker.ts:285
  • @@ -42,7 +42,7 @@
    • WorkerChoiceStrategyContext
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:27
  • @@ -108,7 +108,7 @@

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:49
  • Properties

    @@ -118,7 +118,7 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:52
  • retriesCount: number = 0
    @@ -126,12 +126,12 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:40
  • workerChoiceStrategies: Map<"ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN", IWorkerChoiceStrategy>
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:32
  • workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
    @@ -139,7 +139,7 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:51
  • Methods

    @@ -155,7 +155,7 @@

    Throws

    https://nodejs.org/api/errors.html#class-error If after configured retries the worker node key is null or undefined .

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:173
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:119
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:132
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:200
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:213
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:145
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:159
  • @@ -26,7 +26,7 @@ Always returns a value greater than zero.

    +
  • Defined in src/utils.ts:56
  • -

    poolifier - v2.6.41

    +

    poolifier - v2.6.42

    Index

    @@ -110,7 +110,7 @@

    Theme

    @@ -26,7 +26,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:10
  • @@ -60,7 +60,7 @@
    +
  • Defined in src/pools/pool.ts:162
  • enableTasksQueue?: boolean
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/pool.ts:168
  • env?: Record<string, unknown>
    @@ -82,7 +82,7 @@

    See

    https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

    +
  • Defined in src/pools/cluster/fixed.ts:16
  • errorHandler?: ErrorHandler<Worker>
    @@ -91,7 +91,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • exitHandler?: ExitHandler<Worker>
    @@ -100,7 +100,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • messageHandler?: MessageHandler<Worker>
    @@ -109,7 +109,7 @@
    +
  • Defined in src/pools/pool.ts:134
  • onlineHandler?: OnlineHandler<Worker>
    @@ -118,7 +118,7 @@
    +
  • Defined in src/pools/pool.ts:130
  • restartWorkerOnError?: boolean
    @@ -127,7 +127,7 @@
    +
  • Defined in src/pools/pool.ts:156
  • settings?: ClusterSettings
    @@ -137,7 +137,7 @@

    See

    https://nodejs.org/api/cluster.html#cluster_cluster_settings

    +
  • Defined in src/pools/cluster/fixed.ts:22
  • tasksQueueOptions?: TasksQueueOptions
    @@ -146,7 +146,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -158,7 +158,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -167,7 +167,7 @@
    +
  • Defined in src/pools/pool.ts:152
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:71
  • @@ -42,17 +42,17 @@
    +
  • Defined in src/pools/worker.ts:73
  • +
  • Defined in src/pools/worker.ts:72
  • utilization?: number
    +
  • Defined in src/pools/worker.ts:74
  • @@ -46,7 +46,7 @@ +
  • Defined in src/pools/pool.ts:182
  • @@ -83,7 +83,7 @@

    Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:235
  • emitter?: PoolEmitter
    @@ -101,7 +101,7 @@
    +
  • Defined in src/pools/pool.ts:218
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -130,7 +130,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:266
  • execute: ((data?, name?, transferList?) => Promise<Response>)
    @@ -165,7 +165,7 @@
    +
  • Defined in src/pools/pool.ts:227
  • hasWorkerNodeBackPressure: ((workerNodeKey) => boolean)
    @@ -190,7 +190,7 @@
    +
  • Defined in src/pools/pool.ts:204
  • info: PoolInfo
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/pool.ts:190
  • listTaskFunctions: (() => string[])
    @@ -215,7 +215,7 @@
    +
  • Defined in src/pools/pool.ts:241
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -239,7 +239,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:275
  • setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
    @@ -268,7 +268,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:248
  • setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
    @@ -292,7 +292,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:257
  • workerNodes: IWorkerNode<Worker, Data>[]
    @@ -300,7 +300,7 @@
    +
  • Defined in src/pools/pool.ts:196
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:186
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:190
  • on: ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void) & ((event, handler) => void)
    @@ -118,7 +118,7 @@

    Param

    The event handler.

    +
  • Defined in src/pools/worker.ts:198
  • once: ((event, handler) => void)
    @@ -147,12 +147,12 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:208
  • threadId?: number
    +
  • Defined in src/pools/worker.ts:191
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
  • @@ -59,7 +59,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:195
  • remove: ((workerNodeKey) => boolean)
    @@ -84,7 +84,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:202
  • reset: (() => boolean)
    @@ -101,7 +101,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
  • setOptions: ((opts) => void)
    @@ -125,7 +125,7 @@ If the worker node is not eligible, undefined is returned.

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:208
  • strategyPolicy: StrategyPolicy
    @@ -133,7 +133,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -141,7 +141,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
  • update: ((workerNodeKey) => boolean)
    @@ -163,7 +163,7 @@ If the worker node is not eligible, undefined is returned.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
  • @@ -37,7 +37,7 @@ +
  • Defined in src/pools/worker.ts:226
  • @@ -81,7 +81,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:296
  • closeChannel: (() => void)
    @@ -97,7 +97,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:310
  • dequeueTask: (() => undefined | Task<Data>)
    @@ -114,7 +114,7 @@
    +
  • Defined in src/pools/worker.ts:286
  • enqueueTask: ((task) => number)
    @@ -139,7 +139,7 @@
    +
  • Defined in src/pools/worker.ts:273
  • getTaskFunctionWorkerUsage: ((name) => undefined | WorkerUsage)
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/worker.ts:317
  • hasBackPressure: (() => boolean)
    @@ -181,7 +181,7 @@
    +
  • Defined in src/pools/worker.ts:302
  • info: WorkerInfo
    @@ -189,7 +189,7 @@
    +
  • Defined in src/pools/worker.ts:234
  • messageChannel?: MessageChannel
    @@ -197,7 +197,7 @@
    +
  • Defined in src/pools/worker.ts:247
  • onBackPressure?: WorkerNodeEventCallback
    @@ -205,7 +205,7 @@
    +
  • Defined in src/pools/worker.ts:256
  • onEmptyQueue?: WorkerNodeEventCallback
    @@ -213,7 +213,7 @@
    +
  • Defined in src/pools/worker.ts:260
  • popTask: (() => undefined | Task<Data>)
    @@ -230,7 +230,7 @@
    +
  • Defined in src/pools/worker.ts:292
  • resetUsage: (() => void)
    @@ -246,7 +246,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:306
  • strategyData?: StrategyData
    @@ -255,7 +255,7 @@ This is used to store data that is specific to the worker choice strategy.

    +
  • Defined in src/pools/worker.ts:243
  • tasksQueueBackPressureSize: number
    @@ -264,7 +264,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:252
  • tasksQueueSize: (() => number)
    @@ -281,7 +281,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:266
  • unshiftTask: ((task) => number)
    @@ -306,7 +306,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:280
  • usage: WorkerUsage
    @@ -314,7 +314,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:238
  • worker: Worker
    @@ -322,7 +322,7 @@ This is the number of tasks that can be enqueued before the worker node has back
    +
  • Defined in src/pools/worker.ts:230
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:59
  • @@ -43,7 +43,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:63
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:39
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:43
  • average?: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:55
  • history: CircularArray<number>
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:63
  • maximum?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:51
  • median?: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:59
  • minimum?: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:47
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:112
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:116
  • average: boolean
    @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:120
  • median: boolean
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:124
  • @@ -39,7 +39,7 @@ +
  • Defined in src/utility-types.ts:105
  • @@ -71,7 +71,7 @@
    +
  • Defined in src/utility-types.ts:134
  • data?: Data
    @@ -80,7 +80,7 @@
    +
  • Defined in src/utility-types.ts:83
  • kill?: true | "success" | "SOFT" | "HARD" | "failure"
    @@ -88,7 +88,7 @@
    +
  • Defined in src/utility-types.ts:110
  • name?: string
    @@ -97,7 +97,7 @@
    +
  • Defined in src/utility-types.ts:79
  • port?: MessagePort
    @@ -105,7 +105,7 @@
    +
  • Defined in src/utility-types.ts:138
  • ready?: boolean
    @@ -113,7 +113,7 @@
    +
  • Defined in src/utility-types.ts:130
  • statistics?: WorkerStatistics
    @@ -121,7 +121,7 @@
    +
  • Defined in src/utility-types.ts:126
  • taskError?: TaskError<ErrorData>
    @@ -129,7 +129,7 @@
    +
  • Defined in src/utility-types.ts:114
  • taskFunctions?: string[]
    @@ -137,7 +137,7 @@
    +
  • Defined in src/utility-types.ts:122
  • taskId?: string
    @@ -146,7 +146,7 @@
    +
  • Defined in src/utility-types.ts:95
  • taskPerformance?: TaskPerformance
    @@ -154,7 +154,7 @@
    +
  • Defined in src/utility-types.ts:118
  • timestamp?: number
    @@ -163,7 +163,7 @@
    +
  • Defined in src/utility-types.ts:91
  • transferList?: TransferListItem[]
    @@ -172,7 +172,7 @@
    +
  • Defined in src/utility-types.ts:87
  • workerId: number
    @@ -181,7 +181,7 @@
    +
  • Defined in src/utility-types.ts:75
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:62
  • @@ -59,7 +59,7 @@
    backPressure?: boolean
    +
  • Defined in src/pools/pool.ts:82
  • busyWorkerNodes: number
    @@ -67,22 +67,22 @@
    +
  • Defined in src/pools/pool.ts:77
  • executedTasks: number
    +
  • Defined in src/pools/pool.ts:78
  • executingTasks: number
    +
  • Defined in src/pools/pool.ts:79
  • failedTasks: number
    +
  • Defined in src/pools/pool.ts:84
  • idleWorkerNodes: number
    @@ -90,32 +90,32 @@
    +
  • Defined in src/pools/pool.ts:75
  • maxQueuedTasks?: number
    +
  • Defined in src/pools/pool.ts:81
  • maxSize: number
    +
  • Defined in src/pools/pool.ts:69
  • minSize: number
    +
  • Defined in src/pools/pool.ts:68
  • queuedTasks?: number
    +
  • Defined in src/pools/pool.ts:80
  • ready: boolean
    +
  • Defined in src/pools/pool.ts:66
  • runTime?: {
        average?: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -131,22 +131,22 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:85
  • stolenTasks?: number
    +
  • Defined in src/pools/pool.ts:83
  • strategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    +
  • Defined in src/pools/pool.ts:67
  • type: "fixed" | "dynamic"
    +
  • Defined in src/pools/pool.ts:64
  • utilization?: number
    @@ -154,12 +154,12 @@
    +
  • Defined in src/pools/pool.ts:71
  • version: string
    +
  • Defined in src/pools/pool.ts:63
  • waitTime?: {
        average?: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -175,12 +175,12 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:91
  • worker: "thread" | "cluster"
    +
  • Defined in src/pools/pool.ts:65
  • workerNodes: number
    @@ -188,7 +188,7 @@
    +
  • Defined in src/pools/pool.ts:73
  • @@ -35,7 +35,7 @@
  • ClusterPoolOptions
  • ThreadPoolOptions
  • +
  • Defined in src/pools/pool.ts:126
  • @@ -66,7 +66,7 @@
    +
  • Defined in src/pools/pool.ts:162
  • enableTasksQueue?: boolean
    @@ -77,7 +77,7 @@
    +
  • Defined in src/pools/pool.ts:168
  • errorHandler?: ErrorHandler<Worker>
    @@ -85,7 +85,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • exitHandler?: ExitHandler<Worker>
    @@ -93,7 +93,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • messageHandler?: MessageHandler<Worker>
    @@ -101,7 +101,7 @@
    +
  • Defined in src/pools/pool.ts:134
  • onlineHandler?: OnlineHandler<Worker>
    @@ -109,7 +109,7 @@
    +
  • Defined in src/pools/pool.ts:130
  • restartWorkerOnError?: boolean
    @@ -117,7 +117,7 @@
    +
  • Defined in src/pools/pool.ts:156
  • tasksQueueOptions?: TasksQueueOptions
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -136,7 +136,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/pool.ts:152
  • @@ -32,7 +32,7 @@ +
  • Defined in src/utility-types.ts:147
  • @@ -66,7 +66,7 @@

    Returns void

    +
  • Defined in src/utility-types.ts:155
  • resolve: ((value) => void)
    @@ -87,7 +87,7 @@

    Returns void

    +
  • Defined in src/utility-types.ts:151
  • workerNodeKey: number
    @@ -95,7 +95,7 @@
    +
  • Defined in src/utility-types.ts:159
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:179
  • @@ -40,7 +40,7 @@
    virtualTaskEndTimestamp?: number
    +
  • Defined in src/pools/worker.ts:180
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:152
  • @@ -44,7 +44,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:160
  • dynamicWorkerUsage: boolean
    @@ -52,7 +52,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:156
  • @@ -34,7 +34,7 @@ +
  • Defined in src/utility-types.ts:71
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/utility-types.ts:83
  • name?: string
    @@ -66,7 +66,7 @@
    +
  • Defined in src/utility-types.ts:79
  • taskId?: string
    @@ -74,7 +74,7 @@
    +
  • Defined in src/utility-types.ts:95
  • timestamp?: number
    @@ -82,7 +82,7 @@
    +
  • Defined in src/utility-types.ts:91
  • transferList?: TransferListItem[]
    @@ -90,7 +90,7 @@
    +
  • Defined in src/utility-types.ts:87
  • workerId: number
    @@ -98,7 +98,7 @@
    +
  • Defined in src/utility-types.ts:75
  • @@ -32,7 +32,7 @@ +
  • Defined in src/utility-types.ts:10
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/utility-types.ts:22
  • message: string
    @@ -61,7 +61,7 @@
    +
  • Defined in src/utility-types.ts:18
  • name: string
    @@ -69,7 +69,7 @@
    +
  • Defined in src/utility-types.ts:14
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:30
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/utility-types.ts:46
  • name: string
    @@ -54,7 +54,7 @@
    +
  • Defined in src/utility-types.ts:34
  • runTime?: number
    @@ -62,7 +62,7 @@
    +
  • Defined in src/utility-types.ts:42
  • timestamp: number
    @@ -70,7 +70,7 @@
    +
  • Defined in src/utility-types.ts:38
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:82
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:86
  • executing: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:90
  • failed: number
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:106
  • maxQueued?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:98
  • queued: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:94
  • stolen: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:102
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:132
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:144
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:136
  • waitTime: MeasurementStatisticsRequirements
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:140
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:102
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/pool.ts:118
  • queueMaxSize?: number
    @@ -56,7 +56,7 @@

    Deprecated

    Use size instead.

    +
  • Defined in src/pools/pool.ts:112
  • size?: number
    @@ -67,7 +67,7 @@
    +
  • Defined in src/pools/pool.ts:108
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/thread/fixed.ts:18
  • @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/pool.ts:162
  • enableTasksQueue?: boolean
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/pool.ts:168
  • errorHandler?: ErrorHandler<Worker>
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/pool.ts:138
  • exitHandler?: ExitHandler<Worker>
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:142
  • messageHandler?: MessageHandler<Worker>
    @@ -98,7 +98,7 @@
    +
  • Defined in src/pools/pool.ts:134
  • onlineHandler?: OnlineHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:130
  • restartWorkerOnError?: boolean
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:156
  • tasksQueueOptions?: TasksQueueOptions
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:172
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -137,7 +137,7 @@
    +
  • Defined in src/pools/pool.ts:148
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -146,7 +146,7 @@
    +
  • Defined in src/pools/pool.ts:152
  • workerOptions?: WorkerOptions
    @@ -156,7 +156,7 @@

    See

    https://nodejs.org/api/worker_threads.html#new-workerfilename-options

    +
  • Defined in src/pools/thread/fixed.ts:24
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:69
  • @@ -51,7 +51,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:97
  • measurement?: "runTime" | "waitTime" | "elu"
    @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:79
  • retries?: number
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:75
  • runTime?: MeasurementOptions
    @@ -81,7 +81,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:85
  • waitTime?: MeasurementOptions
    @@ -92,7 +92,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:91
  • weights?: Record<number, number>
    @@ -104,7 +104,7 @@ A weight is tasks maximum execution time in milliseconds for a worker node.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:104
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:127
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:139
  • id: undefined | number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:131
  • ready: boolean
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:143
  • taskFunctions?: string[]
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:147
  • type: "thread" | "cluster"
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:135
  • @@ -24,7 +24,7 @@ +
  • Defined in src/worker/worker-options.ts:28
  • @@ -51,7 +51,7 @@

    Deprecated

    This option will be removed in the next major version.

    +
  • Defined in src/worker/worker-options.ts:63
  • killBehavior?: "SOFT" | "HARD"
    @@ -67,7 +67,7 @@
    +
  • Defined in src/worker/worker-options.ts:39
  • killHandler?: KillHandler
    @@ -75,7 +75,7 @@
    +
  • Defined in src/worker/worker-options.ts:56
  • maxInactiveTime?: number
    @@ -93,7 +93,7 @@ when this timeout expires your tasks is interrupted before completion and remove
    +
  • Defined in src/worker/worker-options.ts:52
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:54
  • @@ -44,7 +44,7 @@
    +
  • Defined in src/utility-types.ts:62
  • runTime: boolean
    @@ -52,7 +52,7 @@
    +
  • Defined in src/utility-types.ts:58
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:155
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:171
  • @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:163
  • tasks: TaskStatistics
    @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:159
  • waitTime: MeasurementStatistics
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:167
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:21
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:29
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/worker/worker-options.ts:18
  • @@ -28,7 +28,7 @@

    Returns void | Promise<void>

    +
  • Defined in src/worker/worker-options.ts:23
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:54
  • @@ -40,7 +40,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:13
  • @@ -38,7 +38,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:8
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:57
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:34
  • @@ -47,7 +47,7 @@ This function must return a promise.

    Returns Promise<Response>

    +
  • Defined in src/worker/task-functions.ts:18
  • @@ -34,7 +34,7 @@ This function can be synchronous or asynchronous.

    +
  • Defined in src/worker/task-functions.ts:29
  • @@ -36,7 +36,7 @@ The value is the function itself.

    +
  • Defined in src/worker/task-functions.ts:42
  • @@ -46,7 +46,7 @@

    Returns Response

    +
  • Defined in src/worker/task-functions.ts:7
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:40
  • @@ -36,7 +36,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:217
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/worker.ts:120
  • @@ -22,7 +22,7 @@
  • T

  • +
  • Defined in src/utility-types.ts:162
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/worker/worker-options.ts:4
  • @@ -29,7 +29,7 @@
    Readonly waitTime: "waitTime"
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:45
  • @@ -37,7 +37,7 @@
    Readonly taskError: "taskError"
    +
  • Defined in src/pools/pool.ts:44
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/pools/pool.ts:20
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:4
  • @@ -27,7 +27,7 @@
    Readonly thread: "thread"
    +
  • Defined in src/pools/worker.ts:112