From a8aeac440fb425585a0d597af86f616e648ae156 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Sat, 15 Apr 2023 12:14:38 +0000
Subject: [PATCH] chore: generate documentation
---
docs/classes/AbstractPool.html | 112 +++++++++---------
docs/classes/AbstractWorker.html | 32 ++---
docs/classes/CircularArray.html | 22 ++--
docs/classes/ClusterWorker.html | 28 ++---
docs/classes/DynamicClusterPool.html | 76 ++++++------
docs/classes/DynamicThreadPool.html | 76 ++++++------
docs/classes/FixedClusterPool.html | 74 ++++++------
docs/classes/FixedThreadPool.html | 74 ++++++------
docs/classes/PoolEmitter.html | 2 +-
docs/classes/ThreadWorker.html | 28 ++---
docs/classes/WorkerChoiceStrategyContext.html | 18 +--
docs/enums/PoolType.html | 6 +-
docs/interfaces/ClusterPoolOptions.html | 24 ++--
docs/interfaces/IPool.html | 30 +++--
docs/interfaces/IWorker.html | 6 +-
docs/interfaces/IWorkerChoiceStrategy.html | 12 +-
docs/interfaces/MessageValue.html | 14 +--
docs/interfaces/PoolOptions.html | 20 ++--
docs/interfaces/PromiseResponseWrapper.html | 8 +-
docs/interfaces/RequiredStatistics.html | 8 +-
docs/interfaces/Task.html | 6 +-
docs/interfaces/TasksQueueOptions.html | 4 +-
docs/interfaces/TasksUsage.html | 16 +--
.../WorkerChoiceStrategyOptions.html | 4 +-
docs/interfaces/WorkerNode.html | 8 +-
docs/interfaces/WorkerOptions.html | 8 +-
docs/types/Draft.html | 2 +-
docs/types/ErrorHandler.html | 2 +-
docs/types/ExitHandler.html | 2 +-
docs/types/KillBehavior.html | 2 +-
docs/types/MessageHandler.html | 2 +-
docs/types/OnlineHandler.html | 2 +-
docs/types/PoolEvent.html | 2 +-
.../types/ThreadWorkerWithMessageChannel.html | 2 +-
docs/types/WorkerChoiceStrategy.html | 2 +-
docs/variables/KillBehaviors.html | 2 +-
docs/variables/PoolEvents.html | 2 +-
docs/variables/WorkerChoiceStrategies.html | 2 +-
38 files changed, 382 insertions(+), 358 deletions(-)
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 4f1fb233..d5c7d4f1 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -45,7 +45,7 @@
IPool < Worker , Data , Response >
+Defined in src/pools/abstract-pool.ts:33
@@ -150,7 +150,7 @@
Returns AbstractPool < Worker , Data , Response >
+Defined in src/pools/abstract-pool.ts:75
Readonly
file Path
file Path: string
+Defined in src/pools/abstract-pool.ts:77
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:76
+Defined in src/pools/abstract-pool.ts:78
Protected
promise Response Map
@@ -198,7 +198,7 @@
When we receive a message from the worker, we get a map entry with the promise resolve/reject bound to the message id.
+Defined in src/pools/abstract-pool.ts:52
Protected
worker Choice Strategy Context
@@ -206,7 +206,7 @@
Default to a round robin algorithm.
+Defined in src/pools/abstract-pool.ts:62
Readonly
worker Nodes
@@ -214,7 +214,7 @@
+Defined in src/pools/abstract-pool.ts:39
Protected
Abstract
full
@@ -238,7 +238,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:287
Private
number Of Queued Tasks
@@ -248,7 +248,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:195
Private
number Of Running Tasks
@@ -258,7 +258,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:180
Protected
Abstract
after Worker Setup
@@ -312,7 +312,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:475
Protected
before Task Execution Hook
@@ -330,7 +330,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:376
Private
build Tasks Queue Options
@@ -343,7 +343,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:274
Private
check And Emit Events
@@ -351,7 +351,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:533
Private
check File Path
@@ -364,7 +364,7 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:112
Private
check Number Of Workers
@@ -377,7 +377,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:121
Private
check Pool Options
@@ -390,7 +390,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:139
Private
check Valid Tasks Queue Options
@@ -403,7 +403,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:167
Private
check Valid Worker Choice Strategy
@@ -416,7 +416,7 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
Returns void
+Defined in src/pools/abstract-pool.ts:157
Protected
choose Worker Node
@@ -429,7 +429,7 @@ Can be overridden.
Returns [ number , WorkerNode < Worker , Data > ]
+Defined in src/pools/abstract-pool.ts:420
Protected
create And Setup Worker
@@ -441,7 +441,7 @@ Can be overridden.
Returns Worker
+Defined in src/pools/abstract-pool.ts:482
Protected
Abstract
create Worker
@@ -451,7 +451,7 @@ Can be overridden.
Returns Worker
+Defined in src/pools/abstract-pool.ts:466
Private
dequeue Task
@@ -464,7 +464,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task < Data >
+Defined in src/pools/abstract-pool.ts:635
+Defined in src/pools/abstract-pool.ts:339
Protected
Abstract
destroy Worker
@@ -492,7 +492,7 @@ Can be overridden.
Returns void | Promise < void >
+Defined in src/pools/abstract-pool.ts:353
+Defined in src/pools/abstract-pool.ts:254
Private
enqueue Task
@@ -527,7 +527,7 @@ Can be overridden.
task: Task < Data >
Returns number
+Defined in src/pools/abstract-pool.ts:631
+Defined in src/pools/abstract-pool.ts:308
Private
execute Task
@@ -562,7 +562,7 @@ Can be overridden.
task: Task < Data >
Returns void
+Defined in src/pools/abstract-pool.ts:626
+Defined in src/pools/abstract-pool.ts:301
Private
flush Tasks Queue
@@ -590,7 +590,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:643
Private
flush Tasks Queue By Worker
@@ -603,7 +603,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:651
Private
get Worker Node Key
@@ -622,7 +622,7 @@ Can be overridden.
Returns number
+Defined in src/pools/abstract-pool.ts:211
Private
get Worker Tasks Usage
@@ -643,7 +643,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:564
Protected
internal Busy
@@ -651,7 +651,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:296
Protected
Abstract
is Main
@@ -661,7 +661,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:368
Private
push Worker Node
@@ -680,7 +680,7 @@ Can be overridden.
Returns number
+Defined in src/pools/abstract-pool.ts:578
Protected
Abstract
register Worker Message Listener
@@ -717,7 +717,7 @@ Can be overridden.
Returns void
Returns void
+Defined in src/pools/abstract-pool.ts:459
Private
remove Worker Node
@@ -734,7 +734,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:620
Protected
Abstract
send To Worker
@@ -755,7 +755,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:448
+Defined in src/pools/abstract-pool.ts:265
set Worker Choice Strategy
-set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -787,11 +787,15 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:218
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:244
Private
set Worker Node
@@ -838,7 +842,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:602
Private
set Worker Node Tasks Usage
@@ -859,7 +863,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:550
Protected
setup Hook
@@ -870,7 +874,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:361
Private
tasks Queue Size
@@ -883,7 +887,7 @@ Can be overridden
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:639
Protected
worker Listener
@@ -910,7 +914,7 @@ Can be overridden
message: MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:505
Returns void
+Defined in src/worker/abstract-worker.ts:105
emit Destroy
@@ -291,7 +291,7 @@ never be called.
Returns MainWorker
+Defined in src/worker/abstract-worker.ts:136
Protected
handle Error
@@ -310,7 +310,7 @@ never be called.
Returns string
+Defined in src/worker/abstract-worker.ts:168
Protected
message Listener
@@ -342,7 +342,7 @@ never be called.
Returns Response | Promise < Response >
Returns void
+Defined in src/worker/abstract-worker.ts:84
Protected
run
@@ -374,7 +374,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:178
Protected
run Async
@@ -406,7 +406,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:205
run In Async Scope
@@ -474,7 +474,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:148
trigger Async Id
diff --git a/docs/classes/CircularArray.html b/docs/classes/CircularArray.html
index c910db3b..2acfcbe4 100644
--- a/docs/classes/CircularArray.html
+++ b/docs/classes/CircularArray.html
@@ -30,7 +30,7 @@
+Defined in src/circular-array.ts:8
+Defined in src/circular-array.ts:11
Properties
@@ -148,7 +148,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
@@ -198,7 +198,7 @@ when they will be absent when used in a 'with' statement.
size: number
Returns void
+Defined in src/circular-array.ts:84
concat
@@ -212,7 +212,7 @@ when they will be absent when used in a 'with' statement.
+Defined in src/circular-array.ts:36
copy Within
@@ -249,7 +249,7 @@ is treated as length+end.
Returns boolean
+Defined in src/circular-array.ts:76
entries
@@ -684,7 +684,7 @@ thisArg is omitted, undefined is used as the this value.
Returns boolean
+Defined in src/circular-array.ts:80
includes
@@ -847,7 +847,7 @@ If the array is empty, undefined is returned and the array is not modified.
Returns number
+Defined in src/circular-array.ts:20
reduce
@@ -1072,7 +1072,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:64
reverse
@@ -1216,7 +1216,7 @@ value otherwise. If omitted, the elements are sorted in ascending, ASCII charact
Returns T []
+Defined in src/circular-array.ts:50
to Locale String
@@ -1252,7 +1252,7 @@ value otherwise. If omitted, the elements are sorted in ascending, ASCII charact
Returns number
+Defined in src/circular-array.ts:28
values
diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html
index 601b8abd..3354dbc0 100644
--- a/docs/classes/ClusterWorker.html
+++ b/docs/classes/ClusterWorker.html
@@ -44,7 +44,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/cluster-worker.ts:21
@@ -119,7 +119,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/cluster-worker.ts:31
Protected
Readonly
is Main
is Main: boolean
@@ -137,7 +137,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:43
Protected
last Task Timestamp
last Task Timestamp: number
@@ -145,7 +145,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:27
Protected
main Worker
main Worker: undefined | null | Worker
@@ -153,7 +153,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:45
Protected
Readonly
opts
@@ -161,7 +161,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:46
+Defined in src/worker/abstract-worker.ts:136
+Defined in src/worker/cluster-worker.ts:50
Protected
message Listener
+Defined in src/worker/abstract-worker.ts:84
+Defined in src/worker/abstract-worker.ts:178
+Defined in src/worker/abstract-worker.ts:205
+Defined in src/worker/cluster-worker.ts:45
trigger Async Id
diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html
index 087de306..0a3eb0ca 100644
--- a/docs/classes/DynamicClusterPool.html
+++ b/docs/classes/DynamicClusterPool.html
@@ -42,7 +42,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/cluster/dynamic.ts:16
@@ -132,7 +132,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/cluster/dynamic.ts:28
Properties
@@ -147,7 +147,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:42
Readonly
file Path
file Path: string
@@ -155,14 +155,14 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:77
+Defined in src/pools/cluster/dynamic.ts:30
Readonly
number Of Workers
number Of Workers: number
@@ -170,7 +170,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:76
Readonly
opts
@@ -178,7 +178,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/cluster/fixed.ts:53
Protected
promise Response Map
@@ -191,7 +191,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:52
Protected
worker Choice Strategy Context
@@ -200,7 +200,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:62
Readonly
worker Nodes
@@ -208,7 +208,7 @@ When the maximum number of workers is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:39
Accessors
@@ -222,7 +222,7 @@ When the maximum number of workers is reached and workers are busy, an event is
Returns boolean
+Defined in src/pools/cluster/dynamic.ts:48
+Defined in src/pools/cluster/dynamic.ts:43
Private
number Of Queued Tasks
+Defined in src/pools/abstract-pool.ts:195
Private
number Of Running Tasks
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/cluster/dynamic.ts:38
Protected
after Worker Setup
+Defined in src/pools/cluster/fixed.ts:93
Protected
before Task Execution Hook
+Defined in src/pools/abstract-pool.ts:376
Protected
choose Worker Node
+Defined in src/pools/abstract-pool.ts:420
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:482
+Defined in src/pools/cluster/fixed.ts:88
+Defined in src/pools/abstract-pool.ts:339
+Defined in src/pools/cluster/fixed.ts:69
+Defined in src/pools/abstract-pool.ts:254
+Defined in src/pools/abstract-pool.ts:308
+Defined in src/pools/abstract-pool.ts:301
+Defined in src/pools/abstract-pool.ts:296
+Defined in src/pools/cluster/fixed.ts:64
Protected
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:80
+Defined in src/pools/cluster/fixed.ts:75
+Defined in src/pools/abstract-pool.ts:265
set Worker Choice Strategy
-set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -565,11 +565,15 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:218
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:244
+Defined in src/pools/cluster/fixed.ts:59
Protected
worker Listener
@@ -627,7 +631,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:505
+Defined in src/pools/abstract-pool.ts:76
Readonly
opts
@@ -178,7 +178,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:78
Protected
promise Response Map
@@ -191,7 +191,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:52
Protected
worker Choice Strategy Context
@@ -200,7 +200,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:62
Readonly
worker Nodes
@@ -208,7 +208,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/abstract-pool.ts:39
Accessors
@@ -222,7 +222,7 @@ When the maximum number of threads is reached and workers are busy, an event is
Returns boolean
+Defined in src/pools/thread/dynamic.ts:49
+Defined in src/pools/thread/dynamic.ts:44
Private
number Of Queued Tasks
+Defined in src/pools/abstract-pool.ts:195
Private
number Of Running Tasks
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/thread/dynamic.ts:39
Protected
after Worker Setup
+Defined in src/pools/thread/fixed.ts:85
Protected
before Task Execution Hook
+Defined in src/pools/abstract-pool.ts:376
Protected
choose Worker Node
+Defined in src/pools/abstract-pool.ts:420
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:482
+Defined in src/pools/thread/fixed.ts:78
+Defined in src/pools/abstract-pool.ts:339
+Defined in src/pools/thread/fixed.ts:54
+Defined in src/pools/abstract-pool.ts:254
+Defined in src/pools/abstract-pool.ts:308
+Defined in src/pools/abstract-pool.ts:301
+Defined in src/pools/abstract-pool.ts:296
+Defined in src/pools/thread/fixed.ts:49
Protected
register Worker Message Listener
+Defined in src/pools/thread/fixed.ts:70
+Defined in src/pools/thread/fixed.ts:62
+Defined in src/pools/abstract-pool.ts:265
set Worker Choice Strategy
-set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -565,11 +565,15 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:218
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:244
+Defined in src/pools/abstract-pool.ts:361
Protected
worker Listener
@@ -627,7 +631,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:505
+Defined in src/pools/abstract-pool.ts:76
Readonly
opts
@@ -168,7 +168,7 @@
+Defined in src/pools/cluster/fixed.ts:53
Protected
promise Response Map
@@ -181,7 +181,7 @@
+Defined in src/pools/abstract-pool.ts:52
Protected
worker Choice Strategy Context
@@ -190,7 +190,7 @@
+Defined in src/pools/abstract-pool.ts:62
Readonly
worker Nodes
@@ -198,7 +198,7 @@
+Defined in src/pools/abstract-pool.ts:39
+Defined in src/pools/cluster/fixed.ts:104
Private
number Of Queued Tasks
+Defined in src/pools/abstract-pool.ts:195
Private
number Of Running Tasks
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/cluster/fixed.ts:99
Protected
after Worker Setup
+Defined in src/pools/cluster/fixed.ts:93
Protected
before Task Execution Hook
+Defined in src/pools/abstract-pool.ts:376
Protected
choose Worker Node
+Defined in src/pools/abstract-pool.ts:420
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:482
+Defined in src/pools/cluster/fixed.ts:88
+Defined in src/pools/abstract-pool.ts:339
+Defined in src/pools/cluster/fixed.ts:69
+Defined in src/pools/abstract-pool.ts:254
+Defined in src/pools/abstract-pool.ts:308
+Defined in src/pools/abstract-pool.ts:301
+Defined in src/pools/abstract-pool.ts:296
+Defined in src/pools/cluster/fixed.ts:64
Protected
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:80
+Defined in src/pools/cluster/fixed.ts:75
+Defined in src/pools/abstract-pool.ts:265
set Worker Choice Strategy
-set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -555,11 +555,15 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:218
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:244
+Defined in src/pools/cluster/fixed.ts:59
Protected
worker Listener
@@ -617,7 +621,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:505
+Defined in src/pools/abstract-pool.ts:76
Readonly
opts
@@ -168,7 +168,7 @@
+Defined in src/pools/abstract-pool.ts:78
Protected
promise Response Map
@@ -181,7 +181,7 @@
+Defined in src/pools/abstract-pool.ts:52
Protected
worker Choice Strategy Context
@@ -190,7 +190,7 @@
+Defined in src/pools/abstract-pool.ts:62
Readonly
worker Nodes
@@ -198,7 +198,7 @@
+Defined in src/pools/abstract-pool.ts:39
+Defined in src/pools/thread/fixed.ts:100
Private
number Of Queued Tasks
+Defined in src/pools/abstract-pool.ts:195
Private
number Of Running Tasks
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/thread/fixed.ts:95
Protected
after Worker Setup
+Defined in src/pools/thread/fixed.ts:85
Protected
before Task Execution Hook
+Defined in src/pools/abstract-pool.ts:376
Protected
choose Worker Node
+Defined in src/pools/abstract-pool.ts:420
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:482
+Defined in src/pools/thread/fixed.ts:78
+Defined in src/pools/abstract-pool.ts:339
+Defined in src/pools/thread/fixed.ts:54
+Defined in src/pools/abstract-pool.ts:254
+Defined in src/pools/abstract-pool.ts:308
+Defined in src/pools/abstract-pool.ts:301
+Defined in src/pools/abstract-pool.ts:296
+Defined in src/pools/thread/fixed.ts:49
Protected
register Worker Message Listener
+Defined in src/pools/thread/fixed.ts:70
+Defined in src/pools/thread/fixed.ts:62
+Defined in src/pools/abstract-pool.ts:265
set Worker Choice Strategy
-set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+set Worker Choice Strategy( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -555,11 +555,15 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:218
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:244
+Defined in src/pools/abstract-pool.ts:361
Protected
worker Listener
@@ -617,7 +621,7 @@ Can be overridden
Returns void
+Defined in src/pools/abstract-pool.ts:505
+Defined in src/worker/abstract-worker.ts:27
Protected
main Worker
main Worker: undefined | null | MessagePort
@@ -153,7 +153,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:45
Protected
Readonly
opts
@@ -161,7 +161,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:46
+Defined in src/worker/abstract-worker.ts:136
+Defined in src/worker/abstract-worker.ts:168
Protected
message Listener
+Defined in src/worker/abstract-worker.ts:84
+Defined in src/worker/abstract-worker.ts:178
+Defined in src/worker/abstract-worker.ts:205
+Defined in src/worker/thread-worker.ts:39
trigger Async Id
diff --git a/docs/classes/WorkerChoiceStrategyContext.html b/docs/classes/WorkerChoiceStrategyContext.html
index e17c741e..2258269c 100644
--- a/docs/classes/WorkerChoiceStrategyContext.html
+++ b/docs/classes/WorkerChoiceStrategyContext.html
@@ -38,7 +38,7 @@
WorkerChoiceStrategyContext
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:24
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:41
Private
worker Choice Strategy
worker Choice Strategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" = WorkerChoiceStrategies.ROUND_ROBIN
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:43
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:82
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:123
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:136
set Worker Choice Strategy
Returns void
+Defined in src/pools/selection-strategies/worker-choice-strategy-context.ts:95
+Defined in src/pools/pool.ts:75
Optional
exit Handler
@@ -91,7 +91,7 @@
+Defined in src/pools/pool.ts:83
Optional
message Handler
@@ -99,7 +99,7 @@
+Defined in src/pools/pool.ts:71
Optional
online Handler
@@ -107,7 +107,7 @@
+Defined in src/pools/pool.ts:79
+Defined in src/pools/cluster/fixed.ts:24
Optional
tasks Queue Options
@@ -124,7 +124,7 @@
+Defined in src/pools/pool.ts:107
Optional
worker Choice Strategy
worker Choice Strategy?: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
@@ -132,7 +132,7 @@
+Defined in src/pools/pool.ts:87
Optional
worker Choice Strategy Options
@@ -140,7 +140,7 @@
+Defined in src/pools/pool.ts:91
+Defined in src/pools/pool.ts:140
enable Tasks Queue
@@ -113,7 +113,7 @@
Returns void
+Defined in src/pools/pool.ts:186
execute
execute: ( ( data: Data ) => Promise < Response > )
@@ -137,7 +137,7 @@
Returns Promise < Response >
+Defined in src/pools/pool.ts:157
find Free Worker Node Key
find Free Worker Node Key: ( ( ) => number )
@@ -156,7 +156,7 @@
Returns number
+Defined in src/pools/pool.ts:150
set Tasks Queue Options
@@ -178,16 +178,16 @@
Returns void
+Defined in src/pools/pool.ts:192
set Worker Choice Strategy
-set Worker Choice Strategy: ( ( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) => void )
+set
Worker
Choice
Strategy
: ( ( workerChoiceStrategy
: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions
?: WorkerChoiceStrategyOptions ) => void )
Type declaration
-( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" ) : void
+( workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" , workerChoiceStrategyOptions?: WorkerChoiceStrategyOptions ) : void
@@ -197,10 +197,14 @@
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+
+
+
Returns void
+Defined in src/pools/pool.ts:168
set Worker Choice Strategy Options
@@ -222,7 +226,7 @@
Returns void
+Defined in src/pools/pool.ts:177
Readonly
type
@@ -230,14 +234,14 @@
If it is 'dynamic'
, it provides the max
property.
+Defined in src/pools/pool.ts:127
+Defined in src/pools/pool.ts:131
Returns void
+Defined in src/pools/worker.ts:105
Returns boolean
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:83
Readonly
required Statistics
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:69
reset
reset: ( ( ) => boolean )
@@ -97,7 +97,7 @@
Returns boolean
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:73
set Options
@@ -119,7 +119,7 @@
Returns void
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:89
+Defined in src/utility-types.ts:35
+Defined in src/pools/pool.ts:91
Returns void
+Defined in src/utility-types.ts:56
Readonly
worker
worker: Worker
+Defined in src/utility-types.ts:64
Path to the worker-file.