From 120c7852afd1ce4c01bd7e70cd14eeeedda8c1e3 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Wed, 12 Jul 2023 10:49:27 +0000
Subject: [PATCH] chore: generate documentation
---
docs/classes/AbstractPool.html | 148 +++++++++---------
docs/classes/AbstractWorker.html | 68 ++++----
docs/classes/CircularArray.html | 28 ++--
docs/classes/ClusterWorker.html | 50 +++---
docs/classes/DynamicClusterPool.html | 82 +++++-----
docs/classes/DynamicThreadPool.html | 82 +++++-----
docs/classes/FixedClusterPool.html | 80 +++++-----
docs/classes/FixedThreadPool.html | 80 +++++-----
docs/classes/PoolEmitter.html | 8 +-
docs/classes/Queue.html | 28 ++--
docs/classes/ThreadWorker.html | 50 +++---
docs/classes/WorkerChoiceStrategyContext.html | 28 ++--
docs/functions/availableParallelism.html | 8 +-
docs/index.html | 8 +-
docs/interfaces/ClusterPoolOptions.html | 32 ++--
...tLoopUtilizationMeasurementStatistics.html | 14 +-
docs/interfaces/IPool.html | 26 +--
docs/interfaces/IWorker.html | 16 +-
docs/interfaces/IWorkerChoiceStrategy.html | 22 +--
docs/interfaces/IWorkerNode.html | 26 +--
docs/interfaces/MeasurementOptions.html | 10 +-
docs/interfaces/MeasurementStatistics.html | 20 +--
.../MeasurementStatisticsRequirements.html | 14 +-
docs/interfaces/MessageValue.html | 30 ++--
docs/interfaces/PoolInfo.html | 44 +++---
docs/interfaces/PoolOptions.html | 28 ++--
docs/interfaces/PromiseResponseWrapper.html | 14 +-
docs/interfaces/StrategyPolicy.html | 10 +-
docs/interfaces/Task.html | 18 +--
docs/interfaces/TaskError.html | 14 +-
docs/interfaces/TaskPerformance.html | 16 +-
docs/interfaces/TaskStatistics.html | 18 +--
.../TaskStatisticsRequirements.html | 14 +-
docs/interfaces/TasksQueueOptions.html | 10 +-
docs/interfaces/ThreadPoolOptions.html | 30 ++--
.../WorkerChoiceStrategyOptions.html | 18 +--
docs/interfaces/WorkerInfo.html | 16 +-
docs/interfaces/WorkerOptions.html | 14 +-
docs/interfaces/WorkerStatistics.html | 12 +-
docs/interfaces/WorkerUsage.html | 16 +-
docs/types/ErrorHandler.html | 8 +-
docs/types/ExitHandler.html | 8 +-
docs/types/KillBehavior.html | 8 +-
docs/types/Measurement.html | 8 +-
docs/types/MessageHandler.html | 8 +-
docs/types/OnlineHandler.html | 8 +-
docs/types/PoolEvent.html | 8 +-
docs/types/PoolType.html | 8 +-
docs/types/TaskFunctions.html | 8 +-
docs/types/WorkerAsyncFunction.html | 8 +-
docs/types/WorkerChoiceStrategy.html | 8 +-
docs/types/WorkerFunction.html | 8 +-
docs/types/WorkerSyncFunction.html | 8 +-
docs/types/WorkerType.html | 8 +-
docs/variables/KillBehaviors.html | 8 +-
docs/variables/Measurements.html | 8 +-
docs/variables/PoolEvents.html | 8 +-
docs/variables/PoolTypes.html | 8 +-
docs/variables/WorkerChoiceStrategies.html | 8 +-
docs/variables/WorkerTypes.html | 8 +-
60 files changed, 705 insertions(+), 705 deletions(-)
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index d7c1a3d6..5eb21d2f 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.6.15
+AbstractPool | poolifier - v2.6.16
@@ -49,7 +49,7 @@
- IPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:54
@@ -176,7 +176,7 @@
Returns AbstractPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:103
Protected
Readonly
filePath
filePath: string
@@ -203,7 +203,7 @@
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -211,7 +211,7 @@
+Defined in src/pools/abstract-pool.ts:104
Protected
Readonly
opts
@@ -219,7 +219,7 @@
+Defined in src/pools/abstract-pool.ts:106
Protected
promiseResponseMap
@@ -232,7 +232,7 @@
+Defined in src/pools/abstract-pool.ts:73
Private
Readonly
startTimestamp
startTimestamp: number
@@ -240,7 +240,7 @@
+Defined in src/pools/abstract-pool.ts:94
Private
Readonly
starting
starting: boolean
@@ -248,7 +248,7 @@
+Defined in src/pools/abstract-pool.ts:90
Protected
workerChoiceStrategyContext
@@ -256,7 +256,7 @@
+Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -265,7 +265,7 @@
+Defined in src/pools/abstract-pool.ts:60
Protected
full
@@ -291,7 +291,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:586
+Defined in src/pools/abstract-pool.ts:289
Protected
Abstract
maxSize
@@ -314,7 +314,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:478
Protected
Abstract
minSize
@@ -325,7 +325,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:473
Private
ready
@@ -333,7 +333,7 @@
-
Returns boolean
+Defined in src/pools/abstract-pool.ts:425
Protected
Abstract
type
@@ -345,7 +345,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:463
+Defined in src/pools/abstract-pool.ts:442
Protected
Abstract
worker
@@ -368,7 +368,7 @@
Returns "cluster" | "thread"
+Defined in src/pools/abstract-pool.ts:468
Protected
afterTaskExecutionHook
@@ -415,7 +415,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:712
Protected
afterWorkerSetup
@@ -435,7 +435,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
@@ -460,7 +460,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:691
Private
buildTasksQueueOptions
@@ -473,7 +473,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:573
Private
checkAndEmitEvents
@@ -481,7 +481,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1118
Protected
checkDynamicPoolSize
@@ -496,7 +496,7 @@ Can be overridden.
max: number
Returns void
+Defined in src/pools/abstract-pool.ts:181
Private
checkFilePath
@@ -509,7 +509,7 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:150
Private
checkMessageWorkerId
+Defined in src/pools/abstract-pool.ts:497
Private
checkNumberOfWorkers
@@ -543,7 +543,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:163
Private
checkPoolOptions
@@ -556,7 +556,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:199
Private
checkValidTasksQueueOptions
@@ -569,7 +569,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:264
Private
checkValidWorkerChoiceStrategy
@@ -582,7 +582,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:226
Private
checkValidWorkerChoiceStrategyOptions
@@ -595,7 +595,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:236
Private
chooseWorkerNode
@@ -608,7 +608,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:889
Protected
createAndSetupDynamicWorker
@@ -620,7 +620,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
@@ -632,7 +632,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:933
Protected
Abstract
createWorker
@@ -644,7 +644,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:926
Private
dequeueTask
@@ -657,7 +657,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task<Data>
+Defined in src/pools/abstract-pool.ts:1181
+Defined in src/pools/abstract-pool.ts:646
Protected
Abstract
destroyWorker
@@ -688,7 +688,7 @@ Can be overridden.
Returns void | Promise<void>
+Defined in src/pools/abstract-pool.ts:667
+Defined in src/pools/abstract-pool.ts:551
Private
enqueueTask
@@ -728,7 +728,7 @@ Can be overridden.
task: Task<Data>
Returns number
+Defined in src/pools/abstract-pool.ts:1177
+Defined in src/pools/abstract-pool.ts:611
Private
executeTask
@@ -775,7 +775,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1172
Private
flushTasksQueue
@@ -788,7 +788,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1189
Private
flushTasksQueues
@@ -796,7 +796,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1199
Private
getWorkerById
@@ -816,7 +816,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:486
Private
getWorkerInfo
@@ -835,7 +835,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1134
Private
getWorkerNodeKey
@@ -855,7 +855,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:514
Private
handleTaskExecutionResponse
@@ -868,7 +868,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1093
Private
handleWorkerReadyResponse
@@ -881,7 +881,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1084
Protected
internalBusy
@@ -893,7 +893,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:602
Protected
Abstract
isMain
@@ -904,7 +904,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:682
Private
redistributeQueuedTasks
@@ -917,7 +917,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1036
Private
registerWorkerMessageListener
@@ -957,7 +957,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1007
Private
removeWorkerNode
@@ -976,7 +976,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1158
Protected
Abstract
sendToWorker
@@ -1000,7 +1000,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:916
Private
sendWorkerStartupMessage
@@ -1013,7 +1013,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:1029
+Defined in src/pools/abstract-pool.ts:563
+Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
+Defined in src/pools/abstract-pool.ts:540
Private
setWorkerStatistics
@@ -1091,7 +1091,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:1205
Protected
setupHook
@@ -1103,7 +1103,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:675
Private
shallCreateDynamicWorker
@@ -1115,7 +1115,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:906
Private
tasksQueueSize
@@ -1128,7 +1128,7 @@ Can be overridden.
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:1185
Private
updateEluWorkerUsage
@@ -1143,7 +1143,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:818
Private
updateRunTimeWorkerUsage
@@ -1158,7 +1158,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:742
Private
updateTaskStatisticsWorkerUsage
@@ -1173,7 +1173,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:729
Private
updateWaitTimeWorkerUsage
@@ -1188,7 +1188,7 @@ Can be overridden.
task: Task<Data>
Returns void
+Defined in src/pools/abstract-pool.ts:780
Protected
workerListener
@@ -1215,7 +1215,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1071
+
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:484
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:333
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:508
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:493
Protected
getMainWorker
@@ -391,7 +391,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:347
+Defined in src/worker/abstract-worker.ts:475
Protected
handleError
@@ -433,7 +433,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:369
+Defined in src/worker/abstract-worker.ts:168
Protected
messageListener
@@ -474,7 +474,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:283
+Defined in src/worker/abstract-worker.ts:225
+Defined in src/worker/abstract-worker.ts:379
Protected
runAsync
@@ -545,7 +545,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:432
runInAsyncScope
@@ -624,7 +624,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:394
Protected
sendReadyResponse
@@ -635,7 +635,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:308
Protected
Abstract
sendToMainWorker
@@ -654,7 +654,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:359
+Defined in src/worker/abstract-worker.ts:253
Private
startCheckActive
@@ -691,7 +691,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:315
Private
stopCheckActive
@@ -702,7 +702,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:326
triggerAsyncId
@@ -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:186
+
Defined in src/worker/abstract-worker.ts:347
+
Defined in src/worker/abstract-worker.ts:369
hasTaskFunction
@@ -350,7 +350,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:168
Protected
messageListener
+Defined in src/worker/abstract-worker.ts:283
+Defined in src/worker/abstract-worker.ts:225
+Defined in src/worker/abstract-worker.ts:379
+Defined in src/worker/abstract-worker.ts:432
+Defined in src/worker/abstract-worker.ts:394
Protected
sendReadyResponse
+Defined in src/worker/abstract-worker.ts:308
Protected
sendToMainWorker
+Defined in src/worker/cluster-worker.ts:52
+Defined in src/worker/abstract-worker.ts:253
triggerAsyncId
@@ -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
@@ -143,7 +143,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
@@ -162,7 +162,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:63
Protected
Readonly
filePath
filePath: string
@@ -171,7 +171,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
max
max: number
@@ -179,7 +179,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
@@ -188,7 +188,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:104
Protected
Readonly
opts
@@ -197,7 +197,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
@@ -211,7 +211,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:73
Protected
workerChoiceStrategyContext
@@ -220,7 +220,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -229,7 +229,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:60
+
Defined in src/pools/abstract-pool.ts:586
+
Defined in src/pools/abstract-pool.ts:289
+
Defined in src/pools/cluster/dynamic.ts:43
+
Defined in src/pools/cluster/fixed.ts:92
+
Defined in src/pools/abstract-pool.ts:425
+
Defined in src/pools/cluster/dynamic.ts:38
+
Defined in src/pools/abstract-pool.ts:442
+
Defined in src/pools/cluster/fixed.ts:87
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:691
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:181
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:933
+
Defined in src/pools/cluster/fixed.ts:77
+
Defined in src/pools/abstract-pool.ts:646
+
Defined in src/pools/cluster/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:551
+
Defined in src/pools/abstract-pool.ts:611
+
Defined in src/pools/abstract-pool.ts:602
+
Defined in src/pools/cluster/fixed.ts:58
+
Defined in src/pools/cluster/fixed.ts:72
+
Defined in src/pools/abstract-pool.ts:563
+
Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:540
+
Defined in src/pools/cluster/fixed.ts:53
+Defined in src/pools/abstract-pool.ts:1071
@@ -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
@@ -143,7 +143,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
@@ -162,7 +162,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:63
Protected
Readonly
filePath
filePath: string
@@ -171,7 +171,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
max
max: number
@@ -179,7 +179,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
@@ -188,7 +188,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:104
Protected
Readonly
opts
@@ -197,7 +197,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
@@ -211,7 +211,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:73
Protected
workerChoiceStrategyContext
@@ -220,7 +220,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -229,7 +229,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:60
Accessors
@@ -244,7 +244,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:586
+
Defined in src/pools/abstract-pool.ts:289
+
Defined in src/pools/thread/dynamic.ts:43
+
Defined in src/pools/thread/fixed.ts:86
+
Defined in src/pools/abstract-pool.ts:425
+
Defined in src/pools/thread/dynamic.ts:38
+
Defined in src/pools/abstract-pool.ts:442
+
Defined in src/pools/thread/fixed.ts:81
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:691
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:181
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:933
+
Defined in src/pools/thread/fixed.ts:68
+
Defined in src/pools/abstract-pool.ts:646
+
Defined in src/pools/thread/fixed.ts:57
+
Defined in src/pools/abstract-pool.ts:551
+
Defined in src/pools/abstract-pool.ts:611
+
Defined in src/pools/abstract-pool.ts:602
+
Defined in src/pools/thread/fixed.ts:52
+
Defined in src/pools/thread/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:563
+
Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:540
+
Defined in src/pools/abstract-pool.ts:675
+Defined in src/pools/abstract-pool.ts:1071
@@ -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
@@ -165,7 +165,7 @@
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -174,7 +174,7 @@
+
Defined in src/pools/abstract-pool.ts:104
Protected
Readonly
opts
@@ -183,7 +183,7 @@
+
Defined in src/pools/cluster/fixed.ts:47
Protected
promiseResponseMap
@@ -197,7 +197,7 @@
+
Defined in src/pools/abstract-pool.ts:73
Protected
workerChoiceStrategyContext
@@ -206,7 +206,7 @@
+
Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -215,7 +215,7 @@
+
Defined in src/pools/abstract-pool.ts:60
+
Defined in src/pools/abstract-pool.ts:586
+
Defined in src/pools/abstract-pool.ts:289
+
Defined in src/pools/cluster/fixed.ts:97
+
Defined in src/pools/cluster/fixed.ts:92
+
Defined in src/pools/abstract-pool.ts:425
+
Defined in src/pools/cluster/fixed.ts:82
+
Defined in src/pools/abstract-pool.ts:442
+
Defined in src/pools/cluster/fixed.ts:87
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:691
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:181
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:933
+
Defined in src/pools/cluster/fixed.ts:77
+
Defined in src/pools/abstract-pool.ts:646
+
Defined in src/pools/cluster/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:551
+
Defined in src/pools/abstract-pool.ts:611
+
Defined in src/pools/abstract-pool.ts:602
+
Defined in src/pools/cluster/fixed.ts:58
+
Defined in src/pools/cluster/fixed.ts:72
+
Defined in src/pools/abstract-pool.ts:563
+
Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:540
+
Defined in src/pools/cluster/fixed.ts:53
+
Defined in src/pools/abstract-pool.ts:1071
@@ -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
@@ -165,7 +165,7 @@
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -174,7 +174,7 @@
+
Defined in src/pools/abstract-pool.ts:104
Protected
Readonly
opts
@@ -183,7 +183,7 @@
+
Defined in src/pools/thread/fixed.ts:46
Protected
promiseResponseMap
@@ -197,7 +197,7 @@
+
Defined in src/pools/abstract-pool.ts:73
Protected
workerChoiceStrategyContext
@@ -206,7 +206,7 @@
+
Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -215,7 +215,7 @@
+
Defined in src/pools/abstract-pool.ts:60
+
Defined in src/pools/abstract-pool.ts:586
+
Defined in src/pools/abstract-pool.ts:289
+
Defined in src/pools/thread/fixed.ts:91
+
Defined in src/pools/thread/fixed.ts:86
+
Defined in src/pools/abstract-pool.ts:425
+
Defined in src/pools/thread/fixed.ts:76
+
Defined in src/pools/abstract-pool.ts:442
+
Defined in src/pools/thread/fixed.ts:81
Protected
afterWorkerSetup
+
Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
+
Defined in src/pools/abstract-pool.ts:691
Protected
checkDynamicPoolSize
+
Defined in src/pools/abstract-pool.ts:181
Protected
createAndSetupDynamicWorker
+
Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
+
Defined in src/pools/abstract-pool.ts:933
+
Defined in src/pools/thread/fixed.ts:68
+
Defined in src/pools/abstract-pool.ts:646
+
Defined in src/pools/thread/fixed.ts:57
+
Defined in src/pools/abstract-pool.ts:551
+
Defined in src/pools/abstract-pool.ts:611
+
Defined in src/pools/abstract-pool.ts:602
+
Defined in src/pools/thread/fixed.ts:52
+
Defined in src/pools/thread/fixed.ts:63
+
Defined in src/pools/abstract-pool.ts:563
+
Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
+
Defined in src/pools/abstract-pool.ts:540
+
Defined in src/pools/abstract-pool.ts:675
+
Defined in src/pools/abstract-pool.ts:1071
@@ -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:186
+
Defined in src/worker/abstract-worker.ts:347
+
Defined in src/worker/thread-worker.ts:61
hasTaskFunction
@@ -350,7 +350,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:168
Protected
messageListener
+Defined in src/worker/abstract-worker.ts:283
+Defined in src/worker/abstract-worker.ts:225
+Defined in src/worker/abstract-worker.ts:379
+Defined in src/worker/abstract-worker.ts:432
+Defined in src/worker/abstract-worker.ts:394
Protected
sendReadyResponse
+Defined in src/worker/abstract-worker.ts:308
Protected
sendToMainWorker
+Defined in src/worker/thread-worker.ts:56
+Defined in src/worker/abstract-worker.ts:253
+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.15
+
poolifier - v2.6.16
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 before completion and remove
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