From: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Date: Sun, 9 Jul 2023 22:31:26 +0000 (+0000)
Subject: chore: generate documentation
X-Git-Tag: v2.6.15~24^2
X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=08e40091fb1d27284ffcdfaced81292139a02c55;p=poolifier.git
chore: generate documentation
---
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 47a0a827..fc48e1e3 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.6.12
+AbstractPool | poolifier - v2.6.13
@@ -49,7 +49,7 @@
- IPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:53
@@ -175,7 +175,7 @@
Returns AbstractPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:98
Protected
Readonly
filePath
filePath: string
@@ -202,7 +202,7 @@
+
Defined in src/pools/abstract-pool.ts:100
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -210,7 +210,7 @@
+Defined in src/pools/abstract-pool.ts:99
Protected
Readonly
opts
@@ -218,7 +218,7 @@
+Defined in src/pools/abstract-pool.ts:101
Protected
promiseResponseMap
@@ -231,7 +231,7 @@
+Defined in src/pools/abstract-pool.ts:72
Private
Readonly
startTimestamp
startTimestamp: number
@@ -239,7 +239,7 @@
+Defined in src/pools/abstract-pool.ts:89
Protected
workerChoiceStrategyContext
@@ -247,7 +247,7 @@
+Defined in src/pools/abstract-pool.ts:80
Readonly
workerNodes
@@ -256,7 +256,7 @@
+Defined in src/pools/abstract-pool.ts:59
Protected
full
@@ -282,7 +282,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:566
+Defined in src/pools/abstract-pool.ts:272
Protected
Abstract
maxSize
@@ -305,7 +305,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:464
Protected
Abstract
minSize
@@ -316,7 +316,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:459
Private
ready
@@ -324,7 +324,7 @@
-
Returns boolean
+Defined in src/pools/abstract-pool.ts:416
Private
starting
@@ -332,7 +332,7 @@
-
Returns boolean
+Defined in src/pools/abstract-pool.ts:408
Protected
Abstract
type
@@ -344,7 +344,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:449
+Defined in src/pools/abstract-pool.ts:428
Protected
Abstract
worker
@@ -367,7 +367,7 @@
Returns "cluster" | "thread"
+Defined in src/pools/abstract-pool.ts:454
Protected
afterWorkerSetup
@@ -414,7 +414,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:927
Protected
beforeTaskExecutionHook
@@ -439,7 +439,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:671
Private
buildTasksQueueOptions
@@ -452,7 +452,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:553
Private
checkAndEmitEvents
@@ -460,7 +460,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1090
Protected
checkDynamicPoolSize
@@ -475,7 +475,7 @@ Can be overridden.
max: number
Returns void
+Defined in src/pools/abstract-pool.ts:164
Private
checkFilePath
@@ -488,7 +488,7 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:137
Private
checkMessageWorkerId
@@ -501,7 +501,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:477
Private
checkNumberOfWorkers
@@ -514,7 +514,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:146
Private
checkPoolOptions
@@ -527,7 +527,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:182
Private
checkValidTasksQueueOptions
@@ -540,7 +540,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:247
Private
checkValidWorkerChoiceStrategy
@@ -553,7 +553,7 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
Returns void
+Defined in src/pools/abstract-pool.ts:209
Private
checkValidWorkerChoiceStrategyOptions
@@ -566,7 +566,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:219
Private
chooseWorkerNode
@@ -579,7 +579,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:869
Protected
createAndSetupDynamicWorker
@@ -591,7 +591,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1010
Protected
createAndSetupWorker
@@ -603,7 +603,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:944
Protected
Abstract
createWorker
@@ -615,7 +615,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:919
Private
dequeueTask
@@ -628,7 +628,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task<Data>
+Defined in src/pools/abstract-pool.ts:1142
+Defined in src/pools/abstract-pool.ts:626
Protected
Abstract
destroyWorker
@@ -659,7 +659,7 @@ Can be overridden.
Returns void | Promise<void>
+Defined in src/pools/abstract-pool.ts:647
+Defined in src/pools/abstract-pool.ts:531
Private
enqueueTask
@@ -699,7 +699,7 @@ Can be overridden.
task: Task<Data>
Returns number
+Defined in src/pools/abstract-pool.ts:1138
+Defined in src/pools/abstract-pool.ts:591
Private
executeTask
@@ -740,7 +740,7 @@ Can be overridden.
task: Task<Data>
Returns void
+Defined in src/pools/abstract-pool.ts:1133
Private
flushTasksQueue
@@ -753,7 +753,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1150
Private
flushTasksQueues
@@ -761,7 +761,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1160
Private
getWorkerById
@@ -781,7 +781,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:472
Private
getWorkerInfo
@@ -800,7 +800,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1106
Private
getWorkerNodeKey
@@ -820,7 +820,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:494
Private
handleTaskExecutionResponse
@@ -833,7 +833,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1063
Private
handleWorkerReadyMessage
@@ -846,7 +846,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1054
Protected
internalBusy
@@ -858,7 +858,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:582
Protected
Abstract
isMain
@@ -869,7 +869,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:662
Private
pushWorkerNode
@@ -889,7 +889,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1116
Private
redistributeQueuedTasks
@@ -902,7 +902,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:977
Private
registerWorkerMessageListener
@@ -942,7 +942,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:907
Private
removeWorkerNode
@@ -961,7 +961,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1125
Protected
Abstract
sendToWorker
@@ -985,7 +985,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:896
+Defined in src/pools/abstract-pool.ts:543
+Defined in src/pools/abstract-pool.ts:501
setWorkerChoiceStrategyOptions
+Defined in src/pools/abstract-pool.ts:520
Private
setWorkerStatistics
@@ -1063,7 +1063,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:1166
Protected
setupHook
@@ -1075,7 +1075,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:655
Private
shallCreateDynamicWorker
@@ -1087,7 +1087,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:886
Private
tasksQueueSize
@@ -1100,7 +1100,7 @@ Can be overridden.
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:1146
Private
updateEluWorkerUsage
@@ -1115,7 +1115,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:798
Private
updateRunTimeWorkerUsage
@@ -1130,7 +1130,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:722
Private
updateTaskStatisticsWorkerUsage
@@ -1145,7 +1145,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:709
Private
updateWaitTimeWorkerUsage
@@ -1160,7 +1160,7 @@ Can be overridden.
task: Task<Data>
Returns void
+Defined in src/pools/abstract-pool.ts:760
Protected
workerListener
@@ -1187,7 +1187,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1041
+
Defined in src/worker/abstract-worker.ts:63
Protected
Abstract
id
id: number
@@ -166,7 +166,7 @@
+Defined in src/worker/abstract-worker.ts:47
Protected
Readonly
isMain
isMain: boolean
@@ -174,7 +174,7 @@
+Defined in src/worker/abstract-worker.ts:75
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -182,7 +182,7 @@
+Defined in src/worker/abstract-worker.ts:55
Protected
Readonly
mainWorker
mainWorker: MainWorker
@@ -190,7 +190,7 @@
+Defined in src/worker/abstract-worker.ts:79
Protected
Readonly
opts
@@ -198,7 +198,7 @@
+Defined in src/worker/abstract-worker.ts:80
Protected
statistics
@@ -206,7 +206,7 @@
+Defined in src/worker/abstract-worker.ts:59
Protected
taskFunctions
@@ -214,7 +214,7 @@
+Defined in src/worker/abstract-worker.ts:51
asyncId
@@ -272,7 +272,7 @@ If a task function with the same name already exists, it is replaced.
Optional
name: string
+Defined in src/worker/abstract-worker.ts:478
bind
@@ -310,7 +310,7 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:327
Private
checkStatistics
@@ -318,7 +318,7 @@ If a task function with the same name already exists, it is replaced.
-
Returns void
+Defined in src/worker/abstract-worker.ts:502
Private
checkTaskFunctions
@@ -337,7 +337,7 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:112
Private
checkWorkerOptions
@@ -350,7 +350,7 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:100
emitDestroy
@@ -379,7 +379,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:487
Protected
getMainWorker
@@ -391,7 +391,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:341
+Defined in src/worker/abstract-worker.ts:469
Protected
handleError
@@ -433,7 +433,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:363
+Defined in src/worker/abstract-worker.ts:159
Protected
messageListener
@@ -474,7 +474,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:276
+Defined in src/worker/abstract-worker.ts:215
+Defined in src/worker/abstract-worker.ts:373
Protected
runAsync
- runAsync(fn, task): void
-
-
@@ -31,7 +31,7 @@
+
- Defined in src/circular-array.ts:8
+
- Defined in src/circular-array.ts:11
Properties
@@ -153,7 +153,7 @@ when they will be absent when used in a 'with' statement.
size
size: number
+- Defined in src/circular-array.ts:9
Static
Readonly
[species]
[species]: ArrayConstructor
Returns void
+
- Defined in src/circular-array.ts:88
concat
@@ -222,7 +222,7 @@ when they will be absent when used in a 'with' statement.
Inherit Doc
+Defined in src/circular-array.ts:39
copyWithin
@@ -263,7 +263,7 @@ is treated as length+end. If start is omitted, 0
is used.
-
Returns boolean
+Defined in src/circular-array.ts:80
entries
@@ -729,7 +729,7 @@ thisArg is omitted, undefined is used as the this value.
-
Returns boolean
+Defined in src/circular-array.ts:84
includes
@@ -910,7 +910,7 @@ If the array is empty, undefined is returned and the array is not modified.
Inherit Doc
+Defined in src/circular-array.ts:21
reduce
@@ -1145,7 +1145,7 @@ If the array is empty, undefined is returned and the array is not modified.
size: number
Returns void
+Defined in src/circular-array.ts:68
reverse
@@ -1301,7 +1301,7 @@ value otherwise. If omitted, the elements are sorted in ascending, ASCII charact
Inherit Doc
+Defined in src/circular-array.ts:54
toLocaleString
@@ -1341,7 +1341,7 @@ value otherwise. If omitted, the elements are sorted in ascending, ASCII charact
Inherit Doc
+Defined in src/circular-array.ts:30
values
@@ -1599,7 +1599,7 @@ value otherwise. If omitted, the elements are sorted in ascending, ASCII charact
- isArray
- of
@@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/cluster-worker.ts:21
@@ -125,7 +125,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/cluster-worker.ts:31
Protected
Readonly
isMain
isMain: boolean
@@ -145,7 +145,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:75
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -154,7 +154,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:55
Protected
Readonly
mainWorker
mainWorker: Worker
@@ -163,7 +163,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:79
Protected
Readonly
opts
@@ -172,7 +172,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:80
Protected
statistics
@@ -181,7 +181,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:59
Protected
taskFunctions
@@ -190,7 +190,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:51
Accessors
@@ -204,7 +204,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/cluster-worker.ts:47
Methods
@@ -239,7 +239,7 @@ If a task function with the same name already exists, it is replaced.
+
Defined in src/worker/abstract-worker.ts:177
+
Defined in src/worker/abstract-worker.ts:341
+
Defined in src/worker/abstract-worker.ts:363
hasTaskFunction
@@ -350,7 +350,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:159
Protected
messageListener
+Defined in src/worker/abstract-worker.ts:276
+Defined in src/worker/abstract-worker.ts:215
+Defined in src/worker/abstract-worker.ts:373
Protected
runAsync
- runAsync(fn, task): void
-
-
@@ -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
@@ -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:62
Protected
Readonly
filePath
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:100
Protected
Readonly
max
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
Protected
Readonly
numberOfWorkers
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:99
Protected
Readonly
opts
@@ -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
Protected
promiseResponseMap
@@ -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:72
Protected
workerChoiceStrategyContext
@@ -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:80
Readonly
workerNodes
@@ -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:59
+
- Defined in src/pools/abstract-pool.ts:566
+
- Defined in src/pools/abstract-pool.ts:272
+
- Defined in src/pools/cluster/dynamic.ts:43
+
- Defined in src/pools/cluster/fixed.ts:92
+
- Defined in src/pools/abstract-pool.ts:416
+
- Defined in src/pools/abstract-pool.ts:408
+
- Defined in src/pools/cluster/dynamic.ts:38
+
- Defined in src/pools/abstract-pool.ts:428
+
- Defined in src/pools/cluster/fixed.ts:87
Protected
afterWorkerSetup
+
- Defined in src/pools/abstract-pool.ts:927
Protected
beforeTaskExecutionHook
+
- Defined in src/pools/abstract-pool.ts:671
Protected
checkDynamicPoolSize
+
- Defined in src/pools/abstract-pool.ts:164
Protected
createAndSetupDynamicWorker
+
- Defined in src/pools/abstract-pool.ts:1010
Protected
createAndSetupWorker
+
- Defined in src/pools/abstract-pool.ts:944
+
- Defined in src/pools/cluster/fixed.ts:77
+
- Defined in src/pools/abstract-pool.ts:626
+
- Defined in src/pools/cluster/fixed.ts:63
+
- Defined in src/pools/abstract-pool.ts:531
+
- Defined in src/pools/abstract-pool.ts:591
+
- Defined in src/pools/abstract-pool.ts:582
+
- Defined in src/pools/cluster/fixed.ts:58
+
- Defined in src/pools/cluster/fixed.ts:72
+
- Defined in src/pools/abstract-pool.ts:543
+
- Defined in src/pools/abstract-pool.ts:501
setWorkerChoiceStrategyOptions
+
- Defined in src/pools/abstract-pool.ts:520
+
- Defined in src/pools/cluster/fixed.ts:53
+ - Defined in src/pools/abstract-pool.ts:1041
@@ -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:62
Protected
Readonly
filePath
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:100
Protected
Readonly
max
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
Protected
Readonly
numberOfWorkers
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:99
Protected
Readonly
opts
@@ -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
Protected
promiseResponseMap
@@ -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:72
Protected
workerChoiceStrategyContext
@@ -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:80
Readonly
workerNodes
@@ -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:59
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:566
+
Defined in src/pools/abstract-pool.ts:272
+
Defined in src/pools/thread/dynamic.ts:43
+
Defined in src/pools/thread/fixed.ts:86
+
Defined in src/pools/abstract-pool.ts:416
+
Defined in src/pools/abstract-pool.ts:408
+
Defined in src/pools/thread/dynamic.ts:38
+
Defined in src/pools/abstract-pool.ts:428
+
Defined in src/pools/thread/fixed.ts:81
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:927
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:671
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:164
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:1010
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:944
+
Defined in src/pools/thread/fixed.ts:68
+
Defined in src/pools/abstract-pool.ts:626
+
Defined in src/pools/thread/fixed.ts:57
+
Defined in src/pools/abstract-pool.ts:531
+
Defined in src/pools/abstract-pool.ts:591
+
Defined in src/pools/abstract-pool.ts:582
+
Defined in src/pools/thread/fixed.ts:52
+
Defined in src/pools/thread/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:543
+
Defined in src/pools/abstract-pool.ts:501
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:520
+
Defined in src/pools/abstract-pool.ts:655
+Defined in src/pools/abstract-pool.ts:1041
@@ -45,7 +45,7 @@
+
Defined in src/pools/cluster/fixed.ts:33
+
Defined in src/pools/cluster/fixed.ts:44
Protected
Readonly
filePath
filePath: string
@@ -166,7 +166,7 @@
+
Defined in src/pools/abstract-pool.ts:100
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -175,7 +175,7 @@
+
Defined in src/pools/abstract-pool.ts:99
Protected
Readonly
opts
@@ -184,7 +184,7 @@
+
Defined in src/pools/cluster/fixed.ts:47
Protected
promiseResponseMap
@@ -198,7 +198,7 @@
+
Defined in src/pools/abstract-pool.ts:72
Protected
workerChoiceStrategyContext
@@ -207,7 +207,7 @@
+
Defined in src/pools/abstract-pool.ts:80
Readonly
workerNodes
@@ -216,7 +216,7 @@
+
Defined in src/pools/abstract-pool.ts:59
+
Defined in src/pools/abstract-pool.ts:566
+
Defined in src/pools/abstract-pool.ts:272
+
Defined in src/pools/cluster/fixed.ts:97
+
Defined in src/pools/cluster/fixed.ts:92
+
Defined in src/pools/abstract-pool.ts:416
+
Defined in src/pools/abstract-pool.ts:408
+
Defined in src/pools/cluster/fixed.ts:82
+
Defined in src/pools/abstract-pool.ts:428
+
Defined in src/pools/cluster/fixed.ts:87
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:927
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:671
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:164
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:1010
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:944
+
Defined in src/pools/cluster/fixed.ts:77
+
Defined in src/pools/abstract-pool.ts:626
+
Defined in src/pools/cluster/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:531
+
Defined in src/pools/abstract-pool.ts:591
+
Defined in src/pools/abstract-pool.ts:582
+
Defined in src/pools/cluster/fixed.ts:58
+
Defined in src/pools/cluster/fixed.ts:72
+
Defined in src/pools/abstract-pool.ts:543
+
Defined in src/pools/abstract-pool.ts:501
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:520
+
Defined in src/pools/cluster/fixed.ts:53
+
Defined in src/pools/abstract-pool.ts:1041
@@ -45,7 +45,7 @@
+
Defined in src/pools/thread/fixed.ts:32
+
Defined in src/pools/thread/fixed.ts:43
Protected
Readonly
filePath
filePath: string
@@ -166,7 +166,7 @@
+
Defined in src/pools/abstract-pool.ts:100
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -175,7 +175,7 @@
+
Defined in src/pools/abstract-pool.ts:99
Protected
Readonly
opts
@@ -184,7 +184,7 @@
+
Defined in src/pools/thread/fixed.ts:46
Protected
promiseResponseMap
@@ -198,7 +198,7 @@
+
Defined in src/pools/abstract-pool.ts:72
Protected
workerChoiceStrategyContext
@@ -207,7 +207,7 @@
+
Defined in src/pools/abstract-pool.ts:80
Readonly
workerNodes
@@ -216,7 +216,7 @@
+
Defined in src/pools/abstract-pool.ts:59
+
Defined in src/pools/abstract-pool.ts:566
+
Defined in src/pools/abstract-pool.ts:272
+
Defined in src/pools/thread/fixed.ts:91
+
Defined in src/pools/thread/fixed.ts:86
+
Defined in src/pools/abstract-pool.ts:416
+
Defined in src/pools/abstract-pool.ts:408
+
Defined in src/pools/thread/fixed.ts:76
+
Defined in src/pools/abstract-pool.ts:428
+
Defined in src/pools/thread/fixed.ts:81
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:927
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:671
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:164
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:1010
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:944
+
Defined in src/pools/thread/fixed.ts:68
+
Defined in src/pools/abstract-pool.ts:626
+
Defined in src/pools/thread/fixed.ts:57
+
Defined in src/pools/abstract-pool.ts:531
+
Defined in src/pools/abstract-pool.ts:591
+
Defined in src/pools/abstract-pool.ts:582
+
Defined in src/pools/thread/fixed.ts:52
+
Defined in src/pools/thread/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:543
+
Defined in src/pools/abstract-pool.ts:501
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:520
+
Defined in src/pools/abstract-pool.ts:655
+
Defined in src/pools/abstract-pool.ts:1041
@@ -26,7 +26,7 @@
+
Defined in src/pools/pool.ts:38
@@ -32,7 +32,7 @@
+
Defined in src/queue.ts:8
+
Defined in src/queue.ts:16
maxSize
maxSize: number
@@ -86,12 +86,12 @@
+
Defined in src/queue.ts:14
Private
offset
offset: number
+
Defined in src/queue.ts:10
size
size: number
@@ -99,7 +99,7 @@
+Defined in src/queue.ts:12
clear
@@ -126,7 +126,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
@@ -125,7 +125,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/thread-worker.ts:36
Protected
Readonly
isMain
isMain: boolean
@@ -145,7 +145,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:75
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -154,7 +154,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:55
Protected
Readonly
mainWorker
mainWorker: MessagePort
@@ -163,7 +163,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:79
Protected
Readonly
opts
@@ -172,7 +172,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:80
Protected
statistics
@@ -181,7 +181,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:59
Protected
taskFunctions
@@ -190,7 +190,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/abstract-worker.ts:51
Accessors
@@ -204,7 +204,7 @@ but the minimum number of workers will be guaranteed.
+
Defined in src/worker/thread-worker.ts:51
Methods
@@ -239,7 +239,7 @@ If a task function with the same name already exists, it is replaced.
+
Defined in src/worker/abstract-worker.ts:177
+
Defined in src/worker/abstract-worker.ts:341
+
Defined in src/worker/thread-worker.ts:61
hasTaskFunction
@@ -350,7 +350,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:159
Protected
messageListener
+Defined in src/worker/abstract-worker.ts:276
+Defined in src/worker/abstract-worker.ts:215
+Defined in src/worker/abstract-worker.ts:373
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:167
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:113
getTaskStatisticsRequirements
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:126
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:185
setOptions
@@ -200,7 +200,7 @@
Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:198
setWorkerChoiceStrategy
@@ -219,7 +219,7 @@
Returns void
+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:46
-
poolifier - v2.6.12
+
poolifier - v2.6.13
Index
@@ -105,7 +105,7 @@
Theme
@@ -26,7 +26,7 @@
+
Defined in src/pools/cluster/fixed.ts:10
+
Defined in src/pools/pool.ts:147
Optional
enableTasksQueue
enableTasksQueue?: boolean
@@ -70,7 +70,7 @@
+Defined in src/pools/pool.ts:153
+Defined in src/pools/cluster/fixed.ts:16
Optional
errorHandler
@@ -89,7 +89,7 @@
+Defined in src/pools/pool.ts:119
Optional
exitHandler
@@ -98,7 +98,7 @@
+Defined in src/pools/pool.ts:127
Optional
messageHandler
@@ -107,7 +107,7 @@
+Defined in src/pools/pool.ts:115
Optional
onlineHandler
@@ -116,7 +116,7 @@
+Defined in src/pools/pool.ts:123
Optional
restartWorkerOnError
restartWorkerOnError?: boolean
@@ -125,7 +125,7 @@
+Defined in src/pools/pool.ts:141
+Defined in src/pools/cluster/fixed.ts:22
Optional
tasksQueueOptions
@@ -144,7 +144,7 @@
+Defined in src/pools/pool.ts:157
Optional
workerChoiceStrategy
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
Optional
workerChoiceStrategyOptions
@@ -164,7 +164,7 @@
+Defined in src/pools/pool.ts:137
@@ -24,7 +24,7 @@
- EventLoopUtilizationMeasurementStatistics
+
Defined in src/pools/worker.ts:70
+
Defined in src/pools/worker.ts:71
Optional
utilization
utilization?: number
+
Defined in src/pools/worker.ts:73
@@ -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
Optional
Readonly
emitter
@@ -97,7 +97,7 @@
+Defined in src/pools/pool.ts:191
Readonly
enableTasksQueue
enableTasksQueue: ((enable, tasksQueueOptions?) => void)
@@ -126,7 +126,7 @@
Returns void
+Defined in src/pools/pool.ts:228
Readonly
execute
execute: ((data?, name?) => Promise<Response>)
@@ -156,7 +156,7 @@
+Defined in src/pools/pool.ts:199
Readonly
info
@@ -164,7 +164,7 @@
+Defined in src/pools/pool.ts:175
Readonly
setTasksQueueOptions
setTasksQueueOptions: ((tasksQueueOptions) => void)
@@ -188,7 +188,7 @@
Returns void
+Defined in src/pools/pool.ts:237
Readonly
setWorkerChoiceStrategy
setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
@@ -217,7 +217,7 @@
Returns void
+Defined in src/pools/pool.ts:210
Readonly
setWorkerChoiceStrategyOptions
setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
@@ -241,7 +241,7 @@
Returns void
+Defined in src/pools/pool.ts:219
Readonly
workerNodes
@@ -249,7 +249,7 @@
+Defined in src/pools/pool.ts:179
@@ -24,7 +24,7 @@
+
Defined in src/pools/worker.ts:168
+
Defined in src/pools/worker.ts:172
Readonly
on
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:180
Readonly
once
once: ((event, handler) => void)
@@ -147,12 +147,12 @@
Returns void
+Defined in src/pools/worker.ts:190
Optional
Readonly
threadId
threadId?: number
+Defined in src/pools/worker.ts:173
+
Defined in src/pools/selection-strategies/selection-strategies-types.ts:186
Readonly
remove
remove: ((workerNodeKey) => boolean)
@@ -83,7 +83,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:193
Readonly
reset
reset: (() => boolean)
@@ -100,7 +100,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:174
Readonly
setOptions
setOptions: ((opts) => void)
@@ -124,7 +124,7 @@
Returns void
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:199
Readonly
strategyPolicy
@@ -132,7 +132,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:164
Readonly
taskStatisticsRequirements
@@ -140,7 +140,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
Readonly
update
update: ((workerNodeKey) => boolean)
@@ -162,7 +162,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:180
@@ -37,7 +37,7 @@
+
Defined in src/pools/worker.ts:200
@@ -72,7 +72,7 @@
Returns void
+
Defined in src/pools/worker.ts:235
Readonly
dequeueTask
dequeueTask: (() => undefined | Task<Data>)
@@ -89,7 +89,7 @@
+Defined in src/pools/worker.ts:231
Readonly
enqueueTask
enqueueTask: ((task) => number)
@@ -114,7 +114,7 @@
+Defined in src/pools/worker.ts:225
Readonly
getTaskWorkerUsage
getTaskWorkerUsage: ((name) => undefined | WorkerUsage)
@@ -135,7 +135,7 @@
+Defined in src/pools/worker.ts:243
Readonly
info
@@ -143,7 +143,7 @@
+Defined in src/pools/worker.ts:208
Readonly
resetUsage
resetUsage: (() => void)
@@ -159,7 +159,7 @@
Returns void
+Defined in src/pools/worker.ts:239
Readonly
tasksQueueSize
tasksQueueSize: (() => number)
@@ -176,7 +176,7 @@
+Defined in src/pools/worker.ts:218
usage
@@ -184,7 +184,7 @@
+Defined in src/pools/worker.ts:212
Readonly
worker
worker: Worker
@@ -192,7 +192,7 @@
+Defined in src/pools/worker.ts:204
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:65
@@ -24,7 +24,7 @@
+
Defined in src/pools/worker.ts:38
+
Defined in src/pools/worker.ts:42
Optional
average
average?: number
@@ -56,7 +56,7 @@
+Defined in src/pools/worker.ts:54
Readonly
history
@@ -64,7 +64,7 @@
+Defined in src/pools/worker.ts:62
Optional
maximum
maximum?: number
@@ -72,7 +72,7 @@
+Defined in src/pools/worker.ts:50
Optional
median
median?: number
@@ -80,7 +80,7 @@
+Defined in src/pools/worker.ts:58
Optional
minimum
minimum?: number
@@ -88,7 +88,7 @@
+Defined in src/pools/worker.ts:46
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:116
median
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:95
+
Defined in src/utility-types.ts:120
Optional
Readonly
data
data?: Data
@@ -77,7 +77,7 @@
+
Defined in src/utility-types.ts:77
Optional
Readonly
id
id?: string
@@ -86,7 +86,7 @@
+
Defined in src/utility-types.ts:85
Optional
Readonly
kill
kill?: true | "SOFT" | "HARD"
@@ -94,7 +94,7 @@
+Defined in src/utility-types.ts:100
Optional
Readonly
name
name?: string
@@ -103,7 +103,7 @@
+Defined in src/utility-types.ts:73
Optional
Readonly
ready
ready?: boolean
@@ -111,7 +111,7 @@
+Defined in src/utility-types.ts:116
Optional
Readonly
statistics
@@ -119,7 +119,7 @@
+Defined in src/utility-types.ts:112
Optional
Readonly
taskError
@@ -127,7 +127,7 @@
+Defined in src/utility-types.ts:104
Optional
Readonly
taskPerformance
@@ -135,7 +135,7 @@
+Defined in src/utility-types.ts:108
Optional
Readonly
timestamp
timestamp?: number
@@ -144,7 +144,7 @@
+Defined in src/utility-types.ts:81
Readonly
workerId
workerId: number
@@ -153,7 +153,7 @@
+Defined in src/utility-types.ts:69
@@ -24,7 +24,7 @@
+
Defined in src/pools/pool.ts:59
+
Defined in src/pools/pool.ts:74
Readonly
executedTasks
executedTasks: number
+
Defined in src/pools/pool.ts:75
Readonly
executingTasks
executingTasks: number
+
Defined in src/pools/pool.ts:76
Readonly
failedTasks
failedTasks: number
+
Defined in src/pools/pool.ts:79
Readonly
idleWorkerNodes
idleWorkerNodes: number
@@ -83,32 +83,32 @@
+Defined in src/pools/pool.ts:72
Readonly
maxQueuedTasks
maxQueuedTasks: number
+Defined in src/pools/pool.ts:78
Readonly
maxSize
maxSize: number
+Defined in src/pools/pool.ts:66
Readonly
minSize
minSize: number
+Defined in src/pools/pool.ts:65
Readonly
queuedTasks
queuedTasks: number
+Defined in src/pools/pool.ts:77
Readonly
ready
ready: boolean
+Defined in src/pools/pool.ts:63
Optional
Readonly
runTime
runTime?: {
    average: number;
    maximum: number;
    median?: number;
    minimum: number;
}
@@ -124,17 +124,17 @@
Readonly
minimum: number
+Defined in src/pools/pool.ts:80
Readonly
strategy
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
Readonly
type
type: "fixed" | "dynamic"
+Defined in src/pools/pool.ts:61
Optional
Readonly
utilization
utilization?: number
@@ -142,12 +142,12 @@
+Defined in src/pools/pool.ts:68
Readonly
version
version: string
+Defined in src/pools/pool.ts:60
Optional
Readonly
waitTime
waitTime?: {
    average: number;
    maximum: number;
    median?: number;
    minimum: number;
}
@@ -163,12 +163,12 @@
Readonly
minimum: number
+Defined in src/pools/pool.ts:86
Readonly
worker
worker: "cluster" | "thread"
+Defined in src/pools/pool.ts:62
Readonly
workerNodes
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
Optional
enableTasksQueue
enableTasksQueue?: boolean
@@ -75,7 +75,7 @@
Default Value
false
+Defined in src/pools/pool.ts:153
Optional
errorHandler
@@ -83,7 +83,7 @@
+Defined in src/pools/pool.ts:119
Optional
exitHandler
@@ -91,7 +91,7 @@
+Defined in src/pools/pool.ts:127
Optional
messageHandler
@@ -99,7 +99,7 @@
+Defined in src/pools/pool.ts:115
Optional
onlineHandler
@@ -107,7 +107,7 @@
+Defined in src/pools/pool.ts:123
Optional
restartWorkerOnError
restartWorkerOnError?: boolean
@@ -115,7 +115,7 @@
+Defined in src/pools/pool.ts:141
Optional
tasksQueueOptions
@@ -123,7 +123,7 @@
+Defined in src/pools/pool.ts:157
Optional
workerChoiceStrategy
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
Optional
workerChoiceStrategyOptions
@@ -141,7 +141,7 @@
+Defined in src/pools/pool.ts:137
@@ -37,7 +37,7 @@
+
Defined in src/utility-types.ts:130
@@ -71,7 +71,7 @@
Returns void
+
Defined in src/utility-types.ts:141
Readonly
resolve
resolve: ((value) => void)
@@ -92,7 +92,7 @@
Returns void
+Defined in src/utility-types.ts:137
Readonly
worker
worker: Worker
@@ -100,7 +100,7 @@
+Defined in src/utility-types.ts:145
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:152
@@ -34,7 +34,7 @@
+
Defined in src/utility-types.ts:65
+
Defined in src/utility-types.ts:77
Optional
Readonly
id
id?: string
@@ -65,7 +65,7 @@
+Defined in src/utility-types.ts:85
Optional
Readonly
name
name?: string
@@ -73,7 +73,7 @@
+Defined in src/utility-types.ts:73
Optional
Readonly
timestamp
timestamp?: number
@@ -81,7 +81,7 @@
+Defined in src/utility-types.ts:81
Readonly
workerId
workerId: number
@@ -89,7 +89,7 @@
+Defined in src/utility-types.ts:69
@@ -32,7 +32,7 @@
+
Defined in src/utility-types.ts:10
+
Defined in src/utility-types.ts:22
Readonly
message
message: string
@@ -61,7 +61,7 @@
+Defined in src/utility-types.ts:18
Readonly
name
name: string
@@ -69,7 +69,7 @@
+Defined in src/utility-types.ts:14
@@ -24,7 +24,7 @@
+
Defined in src/utility-types.ts:30
+
Defined in src/utility-types.ts:46
Readonly
name
name: string
@@ -54,7 +54,7 @@
+Defined in src/utility-types.ts:34
Optional
Readonly
runTime
runTime?: number
@@ -62,7 +62,7 @@
+Defined in src/utility-types.ts:42
Readonly
timestamp
timestamp: number
@@ -70,7 +70,7 @@
+Defined in src/utility-types.ts:38
@@ -24,7 +24,7 @@
+
Defined in src/pools/worker.ts:81
+
Defined in src/pools/worker.ts:85
executing
executing: number
@@ -55,7 +55,7 @@
+Defined in src/pools/worker.ts:89
failed
failed: number
@@ -63,7 +63,7 @@
+Defined in src/pools/worker.ts:101
Optional
Readonly
maxQueued
maxQueued?: number
@@ -71,7 +71,7 @@
+Defined in src/pools/worker.ts:97
Readonly
queued
queued: number
@@ -79,7 +79,7 @@
+Defined in src/pools/worker.ts:93
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:132
Readonly
waitTime
@@ -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
+
Defined in src/pools/pool.ts:147
Optional
enableTasksQueue
enableTasksQueue?: boolean
@@ -69,7 +69,7 @@
+Defined in src/pools/pool.ts:153
Optional
errorHandler
@@ -78,7 +78,7 @@
+Defined in src/pools/pool.ts:119
Optional
exitHandler
@@ -87,7 +87,7 @@
+Defined in src/pools/pool.ts:127
Optional
messageHandler
@@ -96,7 +96,7 @@
+Defined in src/pools/pool.ts:115
Optional
onlineHandler
@@ -105,7 +105,7 @@
+Defined in src/pools/pool.ts:123
Optional
restartWorkerOnError
restartWorkerOnError?: boolean
@@ -114,7 +114,7 @@
+Defined in src/pools/pool.ts:141
Optional
tasksQueueOptions
@@ -123,7 +123,7 @@
+Defined in src/pools/pool.ts:157
Optional
workerChoiceStrategy
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
Optional
workerChoiceStrategyOptions
@@ -143,7 +143,7 @@
+Defined in src/pools/pool.ts:137
+Defined in src/pools/thread/fixed.ts:21
@@ -24,7 +24,7 @@
- WorkerChoiceStrategyOptions
+
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
Optional
Readonly
measurement
measurement?: "runTime" | "waitTime" | "elu"
@@ -57,7 +57,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:75
Optional
Readonly
runTime
@@ -67,7 +67,7 @@
Default Value
{ median: false }
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:81
Optional
Readonly
waitTime
@@ -77,7 +77,7 @@
Default Value
{ median: false }
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:87
Optional
Readonly
weights
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:122
+
Defined in src/pools/worker.ts:134
Readonly
id
id: undefined | number
@@ -54,7 +54,7 @@
+Defined in src/pools/worker.ts:126
ready
ready: boolean
@@ -62,7 +62,7 @@
+Defined in src/pools/worker.ts:138
type
type: "cluster" | "thread"
@@ -70,7 +70,7 @@
+Defined in src/pools/worker.ts:130
@@ -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
Optional
killBehavior
killBehavior?: "SOFT" | "HARD"
@@ -64,7 +64,7 @@
Default Value
KillBehaviors.SOFT
+Defined in src/worker/worker-options.ts:54
Optional
maxInactiveTime
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/pools/worker.ts:146
+
Defined in src/pools/worker.ts:162
Readonly
runTime
@@ -54,7 +54,7 @@
+Defined in src/pools/worker.ts:154
Readonly
tasks
@@ -62,7 +62,7 @@
+Defined in src/pools/worker.ts:150
Readonly
waitTime
@@ -70,7 +70,7 @@
+Defined in src/pools/worker.ts:158
@@ -40,7 +40,7 @@
Returns void
+Defined in src/pools/worker.ts:15
@@ -40,7 +40,7 @@
Returns void
+Defined in src/pools/worker.ts:28
+Defined in src/worker/worker-options.ts:18
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:56
@@ -40,7 +40,7 @@
Returns void
+Defined in src/pools/worker.ts:7
@@ -38,7 +38,7 @@
Returns void
+Defined in src/pools/worker.ts:23
+Defined in src/pools/pool.ts:54
+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
+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
+Defined in src/pools/worker.ts:115
+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
+Defined in src/pools/pool.ts:19
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:4
@@ -27,7 +27,7 @@
Readonly
thread: "thread"
+Defined in src/pools/worker.ts:107
Runs the given function asynchronously.
+Runs the given task function asynchronously.
Parameters
@@ -545,7 +545,7 @@ never be called.Returns void
+run In Async Scope
@@ -606,7 +606,7 @@ then restore the original execution context.- run
Sync(fn, task): void
-
-
- Defined in src/worker/abstract-worker.ts:388
To Main Worker
+- Defined in src/worker/abstract-worker.ts:353
+- Defined in src/worker/abstract-worker.ts:243
Check Alive
+- Defined in src/worker/abstract-worker.ts:308
Check Alive
+- Defined in src/worker/abstract-worker.ts:320
+- Defined in src/worker/abstract-worker.ts:301
Runs the given function synchronously.
+Runs the given task function synchronously.
Parameters
@@ -624,7 +624,7 @@ then restore the original execution context.Returns void
+Protected
Abstract
send@@ -643,7 +643,7 @@ then restore the original execution context.
Returns void
set Default Task Function
@@ -669,7 +669,7 @@ then restore the original execution context.
Throws
https://nodejs.org/api/errors.html#class-error If the
name
parameter is a non-existing task function.Private
start@@ -680,7 +680,7 @@ then restore the original execution context.
Returns void
Private
stop@@ -691,7 +691,7 @@ then restore the original execution context.
Returns void
trigger Async Id
@@ -713,7 +713,7 @@ then restore the original execution context.
Returns void
Static
bind@@ -806,7 +806,7 @@ then restore the original execution context.- worker
Ready
- bind