From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 9 Jul 2023 00:07:47 +0000 (+0000) Subject: chore: generate documentation X-Git-Tag: v2.6.13~20^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f38f85c043864b68ea519f6bdf94821c356195f1;p=poolifier.git chore: generate documentation --- diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html index 73bf3040..bbe344d9 100644 --- a/docs/classes/AbstractPool.html +++ b/docs/classes/AbstractPool.html @@ -1,4 +1,4 @@ -AbstractPool | poolifier - v2.6.11
+AbstractPool | poolifier - v2.6.12
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.11
+
  • The search index is not available
  • poolifier - v2.6.12
    @@ -49,7 +49,7 @@
    • IPool<Worker, Data, Response>
    +
  • Defined in src/pools/abstract-pool.ts:49
  • @@ -175,7 +175,7 @@

    Returns AbstractPool<Worker, Data, Response>

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

    @@ -194,7 +194,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -202,7 +202,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -210,7 +210,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • opts: PoolOptions<Worker>
    @@ -218,7 +218,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:97
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • startTimestamp: number
    @@ -239,7 +239,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:85
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -247,7 +247,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -256,7 +256,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:55
  • Accessors

    @@ -270,7 +270,7 @@

    Returns boolean

    +
  • Defined in src/pools/abstract-pool.ts:571
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:268
  • +
  • Defined in src/pools/abstract-pool.ts:460
  • +
  • Defined in src/pools/abstract-pool.ts:455
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:404
  • +
  • Defined in src/pools/abstract-pool.ts:445
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • +
  • Defined in src/pools/abstract-pool.ts:450
  • Methods

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:683
  • +
  • Defined in src/pools/abstract-pool.ts:911
  • +
  • Defined in src/pools/abstract-pool.ts:667
  • Returns TasksQueueOptions

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

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

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

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

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:215
  • +
  • Defined in src/pools/abstract-pool.ts:853
  • +
  • Defined in src/pools/abstract-pool.ts:994
  • +
  • Defined in src/pools/abstract-pool.ts:928
  • +
  • Defined in src/pools/abstract-pool.ts:903
  • Returns undefined | Task<Data>

    +
  • Defined in src/pools/abstract-pool.ts:1126
  • +
  • Defined in src/pools/abstract-pool.ts:622
  • +
  • Defined in src/pools/abstract-pool.ts:643
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • Returns number

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

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

    +
  • Defined in src/pools/abstract-pool.ts:1134
  • +
  • Defined in src/pools/abstract-pool.ts:1144
  • +
  • Defined in src/pools/abstract-pool.ts:468
  • +
  • Defined in src/pools/abstract-pool.ts:1090
  • +
  • Defined in src/pools/abstract-pool.ts:490
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:1038
  • +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/abstract-pool.ts:658
  • +
  • Defined in src/pools/abstract-pool.ts:1100
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:961
  • +
  • Defined in src/pools/abstract-pool.ts:891
  • +
  • Defined in src/pools/abstract-pool.ts:1109
  • +
  • Defined in src/pools/abstract-pool.ts:880
  • +
  • Defined in src/pools/abstract-pool.ts:539
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1150
  • +
  • Defined in src/pools/abstract-pool.ts:651
  • +
  • Defined in src/pools/abstract-pool.ts:870
  • Returns number

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

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

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

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

    +
  • Defined in src/pools/abstract-pool.ts:744
  • +
  • Defined in src/pools/abstract-pool.ts:1025
  • @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:34
  • @@ -143,7 +143,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:68
  • Properties

    @@ -153,7 +153,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:58
  • id: number
    @@ -161,7 +161,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:42
  • isMain: boolean
    @@ -169,7 +169,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:70
  • lastTaskTimestamp: number
    @@ -177,7 +177,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:50
  • mainWorker: MainWorker
    @@ -185,7 +185,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:74
  • opts: WorkerOptions = ...
    @@ -193,7 +193,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • statistics: WorkerStatistics
    @@ -201,7 +201,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:54
  • taskFunctions: Map<string, WorkerFunction<Data, Response>>
    @@ -209,7 +209,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:46
  • Methods

    @@ -230,7 +230,7 @@
  • Returns TaskPerformance

  • +
  • Defined in src/worker/abstract-worker.ts:337
  • +
  • Defined in src/worker/abstract-worker.ts:205
  • +
  • Defined in src/worker/abstract-worker.ts:360
  • +
  • Defined in src/worker/abstract-worker.ts:107
  • Returns void

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

    +
  • Defined in src/worker/abstract-worker.ts:345
  • +
  • Defined in src/worker/abstract-worker.ts:219
  • +
  • Defined in src/worker/abstract-worker.ts:328
  • +
  • Defined in src/worker/abstract-worker.ts:241
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:251
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
  • Defined in src/worker/abstract-worker.ts:186
  • +
  • Defined in src/worker/abstract-worker.ts:198
  • +
  • Defined in src/worker/abstract-worker.ts:179
  • @@ -31,7 +31,7 @@
    • CircularArray
    +
  • Defined in src/circular-array.ts:8
  • @@ -113,7 +113,7 @@

    Returns CircularArray<T>

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

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

    size: number
    +
  • Defined in src/circular-array.ts:9
  • [species]: ArrayConstructor
    +
  • Defined in src/circular-array.ts:88
  • +
  • Defined in src/circular-array.ts:39
  • +
  • Defined in src/circular-array.ts:80
  • +
  • Defined in src/circular-array.ts:84
  • +
  • Defined in src/circular-array.ts:21
  • Returns void

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

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

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:50
  • mainWorker: Worker
    @@ -158,7 +158,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

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

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

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

    @@ -268,7 +268,7 @@ never be called.

    +
  • Defined in src/worker/abstract-worker.ts:219
  • +
  • Defined in src/worker/abstract-worker.ts:241
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:251
  • +
  • Defined in src/worker/cluster-worker.ts:52
  • +
  • Defined in src/worker/abstract-worker.ts:179
  • @@ -45,7 +45,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    • DynamicClusterPool
    +
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -144,7 +144,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

    @@ -163,7 +163,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -172,7 +172,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:96
  • max: number
    @@ -180,7 +180,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
    @@ -189,7 +189,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:95
  • opts: ClusterPoolOptions = {}
    @@ -198,7 +198,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<Worker, Response>> = ...
    @@ -212,7 +212,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, 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:76
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -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:55
  • Accessors

    @@ -245,7 +245,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:48
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:268
  • +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:404
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • +
  • Defined in src/pools/cluster/fixed.ts:87
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:683
  • +
  • Defined in src/pools/abstract-pool.ts:911
  • +
  • Defined in src/pools/abstract-pool.ts:667
  • +
  • Defined in src/pools/abstract-pool.ts:160
  • +
  • Defined in src/pools/abstract-pool.ts:994
  • +
  • Defined in src/pools/abstract-pool.ts:928
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:622
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • +
  • Defined in src/pools/abstract-pool.ts:587
  • +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/cluster/fixed.ts:72
  • +
  • Defined in src/pools/abstract-pool.ts:539
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1025
  • @@ -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
  • @@ -144,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

    @@ -163,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:58
  • filePath: string
    @@ -172,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:96
  • max: number
    @@ -180,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
    @@ -189,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:95
  • @@ -198,7 +198,7 @@ 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<Worker, Response>> = ...
    @@ -212,7 +212,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, 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:76
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -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:55
  • Accessors

    @@ -245,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:562
  • +
  • Defined in src/pools/abstract-pool.ts:268
  • +
  • Defined in src/pools/thread/dynamic.ts:43
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:404
  • +
  • Defined in src/pools/thread/dynamic.ts:38
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • +
  • Defined in src/pools/thread/fixed.ts:81
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:683
  • +
  • Defined in src/pools/abstract-pool.ts:911
  • +
  • Defined in src/pools/abstract-pool.ts:667
  • +
  • Defined in src/pools/abstract-pool.ts:160
  • +
  • Defined in src/pools/abstract-pool.ts:994
  • +
  • Defined in src/pools/abstract-pool.ts:928
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:622
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • +
  • Defined in src/pools/abstract-pool.ts:587
  • +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:539
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • +
  • Defined in src/pools/abstract-pool.ts:651
  • +
  • Defined in src/pools/abstract-pool.ts:1025
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -138,7 +138,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    @@ -157,7 +157,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -166,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -175,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -207,7 +207,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -216,7 +216,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:55
  • Accessors

    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:102
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:268
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:404
  • +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • +
  • Defined in src/pools/cluster/fixed.ts:87
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:683
  • +
  • Defined in src/pools/abstract-pool.ts:911
  • +
  • Defined in src/pools/abstract-pool.ts:667
  • +
  • Defined in src/pools/abstract-pool.ts:160
  • +
  • Defined in src/pools/abstract-pool.ts:994
  • +
  • Defined in src/pools/abstract-pool.ts:928
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:622
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • +
  • Defined in src/pools/abstract-pool.ts:587
  • +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/cluster/fixed.ts:72
  • +
  • Defined in src/pools/abstract-pool.ts:539
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1025
  • @@ -45,7 +45,7 @@ +
  • Defined in src/pools/thread/fixed.ts:32
  • @@ -138,7 +138,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:43
  • Properties

    @@ -157,7 +157,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -166,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -175,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • @@ -184,7 +184,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:46
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -198,7 +198,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -207,7 +207,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:76
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -216,7 +216,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:55
  • Accessors

    @@ -231,7 +231,7 @@
    +
  • Defined in src/pools/thread/fixed.ts:96
  • +
  • Defined in src/pools/abstract-pool.ts:562
  • +
  • Defined in src/pools/abstract-pool.ts:268
  • +
  • Defined in src/pools/thread/fixed.ts:91
  • +
  • Defined in src/pools/thread/fixed.ts:86
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:404
  • +
  • Defined in src/pools/thread/fixed.ts:76
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • +
  • Defined in src/pools/thread/fixed.ts:81
  • Methods

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

    +
  • Defined in src/pools/abstract-pool.ts:683
  • +
  • Defined in src/pools/abstract-pool.ts:911
  • +
  • Defined in src/pools/abstract-pool.ts:667
  • +
  • Defined in src/pools/abstract-pool.ts:160
  • +
  • Defined in src/pools/abstract-pool.ts:994
  • +
  • Defined in src/pools/abstract-pool.ts:928
  • +
  • Defined in src/pools/thread/fixed.ts:68
  • +
  • Defined in src/pools/abstract-pool.ts:622
  • +
  • Defined in src/pools/thread/fixed.ts:57
  • +
  • Defined in src/pools/abstract-pool.ts:527
  • +
  • Defined in src/pools/abstract-pool.ts:587
  • +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/thread/fixed.ts:52
  • +
  • Defined in src/pools/thread/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:539
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/abstract-pool.ts:516
  • +
  • Defined in src/pools/abstract-pool.ts:651
  • +
  • Defined in src/pools/abstract-pool.ts:1025
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/pool.ts:38
  • @@ -843,7 +843,7 @@ special handling:

  • once
  • setMaxListeners
  • @@ -32,7 +32,7 @@ +
  • Defined in src/queue.ts:8
  • @@ -70,14 +70,14 @@

    T

    Returns Queue<T>

    +
  • Defined in src/queue.ts:16
  • Properties

    items: T[]
    +
  • Defined in src/queue.ts:9
  • maxSize: number
    @@ -85,12 +85,12 @@
    +
  • Defined in src/queue.ts:14
  • offset: number
    +
  • Defined in src/queue.ts:10
  • size: number
    @@ -98,7 +98,7 @@
    +
  • Defined in src/queue.ts:12
  • Methods

    @@ -111,7 +111,7 @@

    Returns void

    +
  • Defined in src/queue.ts:68
  • +
  • Defined in src/queue.ts:40
  • +
  • Defined in src/queue.ts:26
  • +
  • Defined in src/queue.ts:58
  • @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

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

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

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

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

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

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

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

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

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

    @@ -268,7 +268,7 @@ never be called.

    +
  • Defined in src/worker/abstract-worker.ts:219
  • +
  • Defined in src/worker/thread-worker.ts:61
  • +
  • Defined in src/worker/abstract-worker.ts:147
  • +
  • Defined in src/worker/abstract-worker.ts:288
  • +
  • Defined in src/worker/abstract-worker.ts:251
  • +
  • Defined in src/worker/thread-worker.ts:56
  • +
  • Defined in src/worker/abstract-worker.ts:179
    • @@ -536,7 +536,7 @@ then restore the original execution context.

    • workerReady
    • bind
    @@ -42,7 +42,7 @@ +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:27
  • @@ -106,14 +106,14 @@

    Returns WorkerChoiceStrategyContext<Worker, Data, Response>

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

    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
    @@ -121,7 +121,7 @@
    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:46
  • Methods

    @@ -137,7 +137,7 @@

    Throws

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

    +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:167
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:113
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:126
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:185
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:198
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:139
  • +
  • Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:153
  • @@ -26,7 +26,7 @@ Always returns a value greater than zero.

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

    poolifier - v2.6.11

    +

    poolifier - v2.6.12

    Index

    @@ -105,7 +105,7 @@

    Theme

    @@ -26,7 +26,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:10
  • @@ -59,7 +59,7 @@
    +
  • Defined in src/pools/pool.ts:147
  • enableTasksQueue?: boolean
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/pool.ts:153
  • env?: Record<string, unknown>
    @@ -80,7 +80,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:16
  • errorHandler?: ErrorHandler<Worker>
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/pool.ts:119
  • exitHandler?: ExitHandler<Worker>
    @@ -98,7 +98,7 @@
    +
  • Defined in src/pools/pool.ts:127
  • messageHandler?: MessageHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:115
  • onlineHandler?: OnlineHandler<Worker>
    @@ -116,7 +116,7 @@
    +
  • Defined in src/pools/pool.ts:123
  • restartWorkerOnError?: boolean
    @@ -125,7 +125,7 @@
    +
  • Defined in src/pools/pool.ts:141
  • settings?: ClusterSettings
    @@ -135,7 +135,7 @@

    See

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

    +
  • Defined in src/pools/cluster/fixed.ts:22
  • tasksQueueOptions?: TasksQueueOptions
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/pool.ts:157
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -155,7 +155,7 @@
    +
  • Defined in src/pools/pool.ts:133
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:137
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:98
  • @@ -42,17 +42,17 @@
    +
  • Defined in src/pools/worker.ts:100
  • +
  • Defined in src/pools/worker.ts:99
  • utilization?: number
    +
  • Defined in src/pools/worker.ts:101
  • @@ -46,7 +46,7 @@ +
  • Defined in src/pools/pool.ts:167
  • @@ -81,7 +81,7 @@

    Returns Promise<void>

    +
  • Defined in src/pools/pool.ts:203
  • emitter?: PoolEmitter
    @@ -97,7 +97,7 @@
    +
  • Defined in src/pools/pool.ts:191
  • enableTasksQueue: ((enable, tasksQueueOptions?) => void)
    @@ -126,7 +126,7 @@

    Returns void

    +
  • Defined in src/pools/pool.ts:228
  • execute: ((data?, name?) => Promise<Response>)
    @@ -156,7 +156,7 @@
    +
  • Defined in src/pools/pool.ts:199
  • info: PoolInfo
    @@ -164,7 +164,7 @@
    +
  • Defined in src/pools/pool.ts:175
  • setTasksQueueOptions: ((tasksQueueOptions) => void)
    @@ -188,7 +188,7 @@

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/pool.ts:219
  • workerNodes: IWorkerNode<Worker, Data>[]
    @@ -249,7 +249,7 @@
    +
  • Defined in src/pools/pool.ts:179
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:196
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:200
  • 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:208
  • once: ((event, handler) => void)
    @@ -147,12 +147,12 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:218
  • threadId?: number
    +
  • Defined in src/pools/worker.ts:201
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:158
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:184
  • remove: ((workerNodeKey) => boolean)
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:191
  • reset: (() => boolean)
    @@ -100,7 +100,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
  • setOptions: ((opts) => void)
    @@ -124,7 +124,7 @@

    Returns void

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:197
  • strategyPolicy: StrategyPolicy
    @@ -132,7 +132,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:162
  • taskStatisticsRequirements: TaskStatisticsRequirements
    @@ -140,7 +140,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:166
  • update: ((workerNodeKey) => boolean)
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:178
  • @@ -37,7 +37,7 @@ +
  • Defined in src/pools/worker.ts:228
  • @@ -71,7 +71,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:263
  • dequeueTask: (() => undefined | Task<Data>)
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:259
  • enqueueTask: ((task) => number)
    @@ -113,7 +113,7 @@
    +
  • Defined in src/pools/worker.ts:253
  • info: WorkerInfo
    @@ -121,7 +121,7 @@
    +
  • Defined in src/pools/worker.ts:236
  • resetUsage: (() => void)
    @@ -137,7 +137,7 @@

    Returns void

    +
  • Defined in src/pools/worker.ts:267
  • tasksQueueSize: (() => number)
    @@ -154,7 +154,7 @@
    +
  • Defined in src/pools/worker.ts:246
  • usage: WorkerUsage
    @@ -162,7 +162,7 @@
    +
  • Defined in src/pools/worker.ts:240
  • worker: Worker
    @@ -170,7 +170,7 @@
    +
  • Defined in src/pools/worker.ts:232
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:61
  • @@ -43,7 +43,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:65
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:66
  • @@ -48,7 +48,7 @@
    +
  • Defined in src/pools/worker.ts:70
  • average?: number
    @@ -56,7 +56,7 @@
    +
  • Defined in src/pools/worker.ts:82
  • history: CircularArray<number>
    @@ -64,7 +64,7 @@
    +
  • Defined in src/pools/worker.ts:90
  • maximum?: number
    @@ -72,7 +72,7 @@
    +
  • Defined in src/pools/worker.ts:78
  • median?: number
    @@ -80,7 +80,7 @@
    +
  • Defined in src/pools/worker.ts:86
  • minimum?: number
    @@ -88,7 +88,7 @@
    +
  • Defined in src/pools/worker.ts:74
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:108
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:112
  • average: boolean
    @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:116
  • median: boolean
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:120
  • @@ -39,7 +39,7 @@ +
  • Defined in src/utility-types.ts:58
  • @@ -68,7 +68,7 @@
    +
  • Defined in src/utility-types.ts:83
  • data?: Data
    @@ -77,7 +77,7 @@
    +
  • Defined in src/pools/worker.ts:50
  • id?: string
    @@ -86,7 +86,7 @@
    +
  • Defined in src/pools/worker.ts:58
  • kill?: true | "SOFT" | "HARD"
    @@ -94,7 +94,7 @@
    +
  • Defined in src/utility-types.ts:63
  • name?: string
    @@ -103,7 +103,7 @@
    +
  • Defined in src/pools/worker.ts:46
  • ready?: boolean
    @@ -111,7 +111,7 @@
    +
  • Defined in src/utility-types.ts:79
  • statistics?: WorkerStatistics
    @@ -119,7 +119,7 @@
    +
  • Defined in src/utility-types.ts:75
  • taskError?: TaskError<ErrorData>
    @@ -127,7 +127,7 @@
    +
  • Defined in src/utility-types.ts:67
  • taskPerformance?: TaskPerformance
    @@ -135,7 +135,7 @@
    +
  • Defined in src/utility-types.ts:71
  • timestamp?: number
    @@ -144,7 +144,7 @@
    +
  • Defined in src/pools/worker.ts:54
  • workerId: number
    @@ -153,7 +153,7 @@
    +
  • Defined in src/pools/worker.ts:42
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:59
  • @@ -60,22 +60,22 @@
    +
  • Defined in src/pools/pool.ts:74
  • executedTasks: number
    +
  • Defined in src/pools/pool.ts:75
  • executingTasks: number
    +
  • Defined in src/pools/pool.ts:76
  • failedTasks: number
    +
  • Defined in src/pools/pool.ts:79
  • idleWorkerNodes: number
    @@ -83,32 +83,32 @@
    +
  • Defined in src/pools/pool.ts:72
  • maxQueuedTasks: number
    +
  • Defined in src/pools/pool.ts:78
  • maxSize: number
    +
  • Defined in src/pools/pool.ts:66
  • minSize: number
    +
  • Defined in src/pools/pool.ts:65
  • queuedTasks: number
    +
  • Defined in src/pools/pool.ts:77
  • ready: boolean
    +
  • Defined in src/pools/pool.ts:63
  • runTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -124,17 +124,17 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:80
  • strategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    +
  • Defined in src/pools/pool.ts:64
  • type: "fixed" | "dynamic"
    +
  • Defined in src/pools/pool.ts:61
  • utilization?: number
    @@ -142,12 +142,12 @@
    +
  • Defined in src/pools/pool.ts:68
  • version: string
    +
  • Defined in src/pools/pool.ts:60
  • waitTime?: {
        average: number;
        maximum: number;
        median?: number;
        minimum: number;
    }
    @@ -163,12 +163,12 @@
  • Readonly minimum: number
  • +
  • Defined in src/pools/pool.ts:86
  • worker: "cluster" | "thread"
    +
  • Defined in src/pools/pool.ts:62
  • workerNodes: number
    @@ -176,7 +176,7 @@
    +
  • Defined in src/pools/pool.ts:70
  • @@ -35,7 +35,7 @@
  • ClusterPoolOptions
  • ThreadPoolOptions
  • +
  • Defined in src/pools/pool.ts:111
  • @@ -65,7 +65,7 @@

    Default Value

    true

    +
  • Defined in src/pools/pool.ts:147
  • enableTasksQueue?: boolean
    @@ -75,7 +75,7 @@

    Default Value

    false

    +
  • Defined in src/pools/pool.ts:153
  • errorHandler?: ErrorHandler<Worker>
    @@ -83,7 +83,7 @@
    +
  • Defined in src/pools/pool.ts:119
  • exitHandler?: ExitHandler<Worker>
    @@ -91,7 +91,7 @@
    +
  • Defined in src/pools/pool.ts:127
  • messageHandler?: MessageHandler<Worker>
    @@ -99,7 +99,7 @@
    +
  • Defined in src/pools/pool.ts:115
  • onlineHandler?: OnlineHandler<Worker>
    @@ -107,7 +107,7 @@
    +
  • Defined in src/pools/pool.ts:123
  • restartWorkerOnError?: boolean
    @@ -115,7 +115,7 @@
    +
  • Defined in src/pools/pool.ts:141
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:157
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -133,7 +133,7 @@

    Default Value

    WorkerChoiceStrategies.ROUND_ROBIN

    +
  • Defined in src/pools/pool.ts:133
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -141,7 +141,7 @@
    +
  • Defined in src/pools/pool.ts:137
  • @@ -37,7 +37,7 @@ +
  • Defined in src/utility-types.ts:93
  • @@ -71,7 +71,7 @@

    Returns void

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

    Returns void

    +
  • Defined in src/utility-types.ts:100
  • worker: Worker
    @@ -100,7 +100,7 @@
    +
  • Defined in src/utility-types.ts:108
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:148
  • @@ -43,7 +43,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:152
  • @@ -34,7 +34,7 @@ +
  • Defined in src/pools/worker.ts:38
  • @@ -57,7 +57,7 @@
    +
  • Defined in src/pools/worker.ts:50
  • id?: string
    @@ -65,7 +65,7 @@
    +
  • Defined in src/pools/worker.ts:58
  • name?: string
    @@ -73,7 +73,7 @@
    +
  • Defined in src/pools/worker.ts:46
  • timestamp?: number
    @@ -81,7 +81,7 @@
    +
  • Defined in src/pools/worker.ts:54
  • workerId: number
    @@ -89,7 +89,7 @@
    +
  • Defined in src/pools/worker.ts:42
  • @@ -32,7 +32,7 @@ +
  • Defined in src/utility-types.ts:10
  • @@ -52,7 +52,7 @@
    +
  • Defined in src/utility-types.ts:18
  • message: string
    @@ -60,7 +60,7 @@
    +
  • Defined in src/utility-types.ts:14
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:26
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/utility-types.ts:38
  • runTime?: number
    @@ -53,7 +53,7 @@
    +
  • Defined in src/utility-types.ts:34
  • timestamp: number
    @@ -61,7 +61,7 @@
    +
  • Defined in src/utility-types.ts:30
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:109
  • @@ -47,7 +47,7 @@
    +
  • Defined in src/pools/worker.ts:113
  • executing: number
    @@ -55,7 +55,7 @@
    +
  • Defined in src/pools/worker.ts:117
  • failed: number
    @@ -63,7 +63,7 @@
    +
  • Defined in src/pools/worker.ts:129
  • maxQueued: number
    @@ -71,7 +71,7 @@
    +
  • Defined in src/pools/worker.ts:125
  • queued: number
    @@ -79,7 +79,7 @@
    +
  • Defined in src/pools/worker.ts:121
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:128
  • @@ -45,7 +45,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:140
  • @@ -53,7 +53,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:132
  • waitTime: MeasurementStatisticsRequirements
    @@ -61,7 +61,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:136
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/pool.ts:97
  • @@ -45,7 +45,7 @@

    Default Value

    1

    +
  • Defined in src/pools/pool.ts:103
  • @@ -26,7 +26,7 @@ +
  • Defined in src/pools/thread/fixed.ts:15
  • @@ -58,7 +58,7 @@
    +
  • Defined in src/pools/pool.ts:147
  • enableTasksQueue?: boolean
    @@ -69,7 +69,7 @@
    +
  • Defined in src/pools/pool.ts:153
  • errorHandler?: ErrorHandler<Worker>
    @@ -78,7 +78,7 @@
    +
  • Defined in src/pools/pool.ts:119
  • exitHandler?: ExitHandler<Worker>
    @@ -87,7 +87,7 @@
    +
  • Defined in src/pools/pool.ts:127
  • messageHandler?: MessageHandler<Worker>
    @@ -96,7 +96,7 @@
    +
  • Defined in src/pools/pool.ts:115
  • onlineHandler?: OnlineHandler<Worker>
    @@ -105,7 +105,7 @@
    +
  • Defined in src/pools/pool.ts:123
  • restartWorkerOnError?: boolean
    @@ -114,7 +114,7 @@
    +
  • Defined in src/pools/pool.ts:141
  • tasksQueueOptions?: TasksQueueOptions
    @@ -123,7 +123,7 @@
    +
  • Defined in src/pools/pool.ts:157
  • workerChoiceStrategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
    @@ -134,7 +134,7 @@
    +
  • Defined in src/pools/pool.ts:133
  • workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions
    @@ -143,7 +143,7 @@
    +
  • Defined in src/pools/pool.ts:137
  • workerOptions?: WorkerOptions
    @@ -153,7 +153,7 @@

    See

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

    +
  • Defined in src/pools/thread/fixed.ts:21
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:71
  • @@ -49,7 +49,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:93
  • measurement?: "runTime" | "waitTime" | "elu"
    @@ -57,7 +57,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:75
  • runTime?: MeasurementOptions
    @@ -67,7 +67,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:81
  • waitTime?: MeasurementOptions
    @@ -77,7 +77,7 @@

    Default Value

    { median: false }

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:87
  • weights?: Record<number, number>
    @@ -88,7 +88,7 @@ Weight is the tasks maximum average or median runtime in milliseconds.

    Default Value

    Computed worker weights automatically given the CPU performance.

    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:100
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:150
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:162
  • id: undefined | number
    @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:154
  • ready: boolean
    @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:166
  • type: "cluster" | "thread"
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:158
  • @@ -24,7 +24,7 @@ +
  • Defined in src/worker/worker-options.ts:23
  • @@ -49,7 +49,7 @@

    Deprecated

    This option will be removed in the next major version.

    +
  • Defined in src/worker/worker-options.ts:43
  • killBehavior?: "SOFT" | "HARD"
    @@ -64,7 +64,7 @@

    Default Value

    KillBehaviors.SOFT

    +
  • Defined in src/worker/worker-options.ts:54
  • maxInactiveTime?: number
    @@ -81,7 +81,7 @@ when this timeout expires your tasks is interrupted and the worker is killed if

    Default Value

    60000

    +
  • Defined in src/worker/worker-options.ts:36
  • @@ -24,7 +24,7 @@ +
  • Defined in src/utility-types.ts:46
  • @@ -41,12 +41,12 @@
    elu: boolean
    +
  • Defined in src/utility-types.ts:48
  • runTime: boolean
    +
  • Defined in src/utility-types.ts:47
  • @@ -24,7 +24,7 @@ +
  • Defined in src/pools/worker.ts:174
  • @@ -46,7 +46,7 @@
    +
  • Defined in src/pools/worker.ts:190
  • @@ -54,7 +54,7 @@
    +
  • Defined in src/pools/worker.ts:182
  • tasks: TaskStatistics
    @@ -62,7 +62,7 @@
    +
  • Defined in src/pools/worker.ts:178
  • waitTime: MeasurementStatistics
    @@ -70,7 +70,7 @@
    +
  • Defined in src/pools/worker.ts:186
  • @@ -40,7 +40,7 @@

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/worker.ts:22
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:54
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/pool.ts:33
  • @@ -36,7 +36,7 @@ The value is the function itself.

    +
  • Defined in src/worker/worker-functions.ts:42
  • @@ -47,7 +47,7 @@ This function must return a promise.

    Returns Promise<Response>

    +
  • Defined in src/worker/worker-functions.ts:18
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/selection-strategies/selection-strategies-types.ts:42
  • @@ -34,7 +34,7 @@ This function can be synchronous or asynchronous.

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

    Returns Response

    +
  • Defined in src/worker/worker-functions.ts:7
  • @@ -20,7 +20,7 @@
    +
  • Defined in src/pools/worker.ts:143
  • @@ -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:47
  • @@ -33,7 +33,7 @@
    Readonly taskError: "taskError"
    +
  • Defined in src/pools/pool.ts:43
  • @@ -33,7 +33,7 @@
    +
  • Defined in src/pools/pool.ts:19
  • @@ -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:135