From 33c629765dcf8e17e2d3fa207a286b5d360fae78 Mon Sep 17 00:00:00 2001
From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?=
Date: Mon, 17 Oct 2022 11:58:15 +0200
Subject: [PATCH] Update documentation
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit
Signed-off-by: Jérôme Benoit
---
docs/classes/AbstractWorker.html | 30 ++++----
docs/classes/ClusterWorker.html | 26 +++----
docs/classes/DynamicClusterPool.html | 76 +++++++++----------
docs/classes/DynamicThreadPool.html | 76 +++++++++----------
docs/classes/FixedClusterPool.html | 76 +++++++++----------
docs/classes/FixedThreadPool.html | 76 +++++++++----------
docs/classes/ThreadWorker.html | 26 +++----
docs/interfaces/ClusterPoolOptions.html | 18 ++---
docs/interfaces/IPool.html | 8 +-
docs/interfaces/IPoolWorker.html | 12 +--
docs/interfaces/PoolOptions.html | 14 ++--
docs/interfaces/WorkerOptions.html | 8 +-
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 +-
.../types/ThreadWorkerWithMessageChannel.html | 2 +-
docs/types/WorkerChoiceStrategy.html | 2 +-
docs/variables/KillBehaviors.html | 2 +-
docs/variables/WorkerChoiceStrategies.html | 2 +-
21 files changed, 232 insertions(+), 232 deletions(-)
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index 9df69d21..b1c6a9b4 100644
--- a/docs/classes/AbstractWorker.html
+++ b/docs/classes/AbstractWorker.html
@@ -41,7 +41,7 @@
ClusterWorker
ThreadWorker
+Defined in src/worker/abstract-worker.ts:19
@@ -131,7 +131,7 @@
Returns AbstractWorker < MainWorker , Data , Response >
+Defined in src/worker/abstract-worker.ts:45
Protected
last Task Timestamp
last Task Timestamp: number
+Defined in src/worker/abstract-worker.ts:27
Protected
main Worker
main Worker: undefined | null | MainWorker
+Defined in src/worker/abstract-worker.ts:49
+Defined in src/worker/abstract-worker.ts:35
Methods
@@ -210,7 +210,7 @@ the AsyncResource
to which the function is bound.
Returns void
+Defined in src/worker/abstract-worker.ts:144
Private
check Function Input
@@ -238,7 +238,7 @@ the AsyncResource
to which the function is bound.
Returns Response
Returns void
+Defined in src/worker/abstract-worker.ts:118
Private
check Worker Options
@@ -251,7 +251,7 @@ the AsyncResource
to which the function is bound.
Returns void
+Defined in src/worker/abstract-worker.ts:103
emit Destroy
@@ -279,7 +279,7 @@ never be called.
Returns MainWorker
+Defined in src/worker/abstract-worker.ts:127
Protected
handle Error
@@ -298,7 +298,7 @@ never be called.
Returns string
+Defined in src/worker/abstract-worker.ts:159
Protected
message Listener
@@ -324,7 +324,7 @@ never be called.
Returns Response
Returns void
+Defined in src/worker/abstract-worker.ts:81
Protected
run
@@ -356,7 +356,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:169
Protected
run Async
@@ -388,7 +388,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:192
run In Async Scope
@@ -456,7 +456,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:139
trigger Async Id
diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html
index 7ee60557..01e9e5d4 100644
--- a/docs/classes/ClusterWorker.html
+++ b/docs/classes/ClusterWorker.html
@@ -42,7 +42,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/cluster-worker.ts:21
@@ -116,7 +116,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/cluster-worker.ts:31
Protected
last Task Timestamp
last Task Timestamp: number
@@ -134,13 +134,13 @@ 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
+Defined in src/worker/abstract-worker.ts:49
Readonly
opts
@@ -148,7 +148,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:35
+Defined in src/worker/abstract-worker.ts:127
+Defined in src/worker/cluster-worker.ts:47
Protected
message Listener
+Defined in src/worker/abstract-worker.ts:81
+Defined in src/worker/abstract-worker.ts:169
+Defined in src/worker/abstract-worker.ts:192
+Defined in src/worker/cluster-worker.ts:42
trigger Async Id
diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html
index f032491e..d0006825 100644
--- a/docs/classes/DynamicClusterPool.html
+++ b/docs/classes/DynamicClusterPool.html
@@ -40,7 +40,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/cluster/dynamic.ts:16
@@ -133,7 +133,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/cluster/dynamic.ts:28
Properties
@@ -143,13 +143,13 @@ When the maximum number of workers is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/abstract-pool.ts:42
Readonly
file Path
file Path: string
+Defined in src/pools/abstract-pool.ts:85
Readonly
max
max: number
@@ -157,7 +157,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/cluster/dynamic.ts:30
Protected
next Message Id
next Message Id: number = 0
@@ -165,19 +165,19 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:63
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:84
+Defined in src/pools/cluster/fixed.ts:53
Protected
promise Map
promise Map: Map < number , PromiseWorkerResponseWrapper < Worker , Response > > = ...
@@ -190,7 +190,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:55
Protected
worker Choice Strategy Context
worker Choice Strategy Context: WorkerChoiceStrategyContext < Worker , Data , Response >
@@ -199,7 +199,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:70
Readonly
workers
workers: Worker [] = []
@@ -207,7 +207,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Readonly
workers Tasks Usage
workers Tasks Usage: Map < Worker , TasksUsage > = ...
@@ -215,7 +215,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/abstract-pool.ts:36
Accessors
@@ -228,7 +228,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Returns boolean
+Defined in src/pools/cluster/dynamic.ts:43
+Defined in src/pools/abstract-pool.ts:156
+Defined in src/pools/cluster/dynamic.ts:38
Protected
after Worker Setup
+Defined in src/pools/cluster/fixed.ts:93
Protected
before Promise Worker Response Hook
+Defined in src/pools/abstract-pool.ts:252
+Defined in src/pools/abstract-pool.ts:290
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:344
+Defined in src/pools/cluster/fixed.ts:88
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/cluster/fixed.ts:69
+Defined in src/pools/abstract-pool.ts:210
+Defined in src/pools/abstract-pool.ts:199
get Worker Average Tasks Run Time
+Defined in src/pools/abstract-pool.ts:171
+Defined in src/pools/abstract-pool.ts:161
+Defined in src/pools/abstract-pool.ts:166
+Defined in src/pools/abstract-pool.ts:470
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:315
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:191
+Defined in src/pools/cluster/fixed.ts:64
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:80
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/cluster/fixed.ts:75
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/cluster/fixed.ts:59
Protected
worker Listener
@@ -629,7 +629,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:368
+Defined in src/pools/thread/dynamic.ts:31
Protected
next Message Id
next Message Id: number = 0
@@ -165,19 +165,19 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:63
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:84
+Defined in src/pools/abstract-pool.ts:86
Protected
promise Map
@@ -190,7 +190,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:55
Protected
worker Choice Strategy Context
@@ -199,7 +199,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:70
Readonly
workers
@@ -207,7 +207,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Readonly
workers Tasks Usage
@@ -215,7 +215,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Inherit Doc
+Defined in src/pools/abstract-pool.ts:36
Accessors
@@ -228,7 +228,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Returns boolean
+Defined in src/pools/thread/dynamic.ts:44
+Defined in src/pools/abstract-pool.ts:156
+Defined in src/pools/thread/dynamic.ts:39
Protected
after Worker Setup
+Defined in src/pools/thread/fixed.ts:80
Protected
before Promise Worker Response Hook
+Defined in src/pools/abstract-pool.ts:252
+Defined in src/pools/abstract-pool.ts:290
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:344
+Defined in src/pools/thread/fixed.ts:73
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/thread/fixed.ts:49
+Defined in src/pools/abstract-pool.ts:210
+Defined in src/pools/abstract-pool.ts:199
get Worker Average Tasks Run Time
+Defined in src/pools/abstract-pool.ts:171
+Defined in src/pools/abstract-pool.ts:161
+Defined in src/pools/abstract-pool.ts:166
+Defined in src/pools/abstract-pool.ts:470
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:315
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:191
+Defined in src/pools/thread/fixed.ts:44
register Worker Message Listener
+Defined in src/pools/thread/fixed.ts:65
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/thread/fixed.ts:57
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/abstract-pool.ts:237
Protected
worker Listener
@@ -630,7 +630,7 @@ to run code before workers are created in the abstract constructor.
Returns void
+Defined in src/pools/abstract-pool.ts:368
+Defined in src/pools/abstract-pool.ts:45
Protected
next Message Id
next Message Id: number = 0
@@ -163,19 +163,19 @@
+Defined in src/pools/abstract-pool.ts:63
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:84
+Defined in src/pools/cluster/fixed.ts:53
Protected
promise Map
promise Map: Map < number , PromiseWorkerResponseWrapper < Worker , Response > > = ...
@@ -188,7 +188,7 @@
+Defined in src/pools/abstract-pool.ts:55
Protected
worker Choice Strategy Context
worker Choice Strategy Context: WorkerChoiceStrategyContext < Worker , Data , Response >
@@ -197,7 +197,7 @@
+Defined in src/pools/abstract-pool.ts:70
Readonly
workers
workers: Worker [] = []
@@ -205,7 +205,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Readonly
workers Tasks Usage
workers Tasks Usage: Map < Worker , TasksUsage > = ...
@@ -213,7 +213,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:36
+Defined in src/pools/abstract-pool.ts:156
+Defined in src/pools/cluster/fixed.ts:99
Protected
after Worker Setup
+Defined in src/pools/cluster/fixed.ts:93
Protected
before Promise Worker Response Hook
+Defined in src/pools/abstract-pool.ts:252
+Defined in src/pools/abstract-pool.ts:290
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:344
+Defined in src/pools/cluster/fixed.ts:88
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/cluster/fixed.ts:69
+Defined in src/pools/abstract-pool.ts:210
+Defined in src/pools/abstract-pool.ts:199
get Worker Average Tasks Run Time
+Defined in src/pools/abstract-pool.ts:171
+Defined in src/pools/abstract-pool.ts:161
+Defined in src/pools/abstract-pool.ts:166
+Defined in src/pools/abstract-pool.ts:470
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:315
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:191
+Defined in src/pools/cluster/fixed.ts:64
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:80
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/cluster/fixed.ts:75
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/cluster/fixed.ts:59
Protected
worker Listener
@@ -627,7 +627,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:368
+Defined in src/pools/abstract-pool.ts:45
Protected
next Message Id
next Message Id: number = 0
@@ -163,19 +163,19 @@
+Defined in src/pools/abstract-pool.ts:63
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:84
+Defined in src/pools/abstract-pool.ts:86
Protected
promise Map
@@ -188,7 +188,7 @@
+Defined in src/pools/abstract-pool.ts:55
Protected
worker Choice Strategy Context
@@ -197,7 +197,7 @@
+Defined in src/pools/abstract-pool.ts:70
Readonly
workers
@@ -205,7 +205,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Readonly
workers Tasks Usage
@@ -213,7 +213,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:36
+Defined in src/pools/abstract-pool.ts:156
+Defined in src/pools/thread/fixed.ts:90
Protected
after Worker Setup
+Defined in src/pools/thread/fixed.ts:80
Protected
before Promise Worker Response Hook
+Defined in src/pools/abstract-pool.ts:252
+Defined in src/pools/abstract-pool.ts:290
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:344
+Defined in src/pools/thread/fixed.ts:73
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/thread/fixed.ts:49
+Defined in src/pools/abstract-pool.ts:210
+Defined in src/pools/abstract-pool.ts:199
get Worker Average Tasks Run Time
+Defined in src/pools/abstract-pool.ts:171
+Defined in src/pools/abstract-pool.ts:161
+Defined in src/pools/abstract-pool.ts:166
+Defined in src/pools/abstract-pool.ts:470
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:315
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:191
+Defined in src/pools/thread/fixed.ts:44
register Worker Message Listener
+Defined in src/pools/thread/fixed.ts:65
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/thread/fixed.ts:57
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/abstract-pool.ts:237
Protected
worker Listener
@@ -628,7 +628,7 @@ to run code before workers are created in the abstract constructor.
Returns void
+Defined in src/pools/abstract-pool.ts:368
+Defined in src/worker/abstract-worker.ts:27
Protected
main Worker
main Worker: undefined | null | MessagePort
+Defined in src/worker/abstract-worker.ts:49
Readonly
opts
@@ -148,7 +148,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/abstract-worker.ts:35
+Defined in src/worker/abstract-worker.ts:127
+Defined in src/worker/abstract-worker.ts:159
Protected
message Listener
+Defined in src/worker/abstract-worker.ts:81
+Defined in src/worker/abstract-worker.ts:169
+Defined in src/worker/abstract-worker.ts:192
+Defined in src/worker/thread-worker.ts:36
trigger Async Id
diff --git a/docs/interfaces/ClusterPoolOptions.html b/docs/interfaces/ClusterPoolOptions.html
index 29fc8f2c..5f93ed65 100644
--- a/docs/interfaces/ClusterPoolOptions.html
+++ b/docs/interfaces/ClusterPoolOptions.html
@@ -23,7 +23,7 @@
+Defined in src/pools/cluster/fixed.ts:11
+Defined in src/pools/cluster/fixed.ts:18
Optional
error Handler
@@ -68,7 +68,7 @@
+Defined in src/pools/pool.ts:20
Optional
exit Handler
@@ -76,7 +76,7 @@
+Defined in src/pools/pool.ts:28
Optional
message Handler
@@ -84,7 +84,7 @@
+Defined in src/pools/pool.ts:16
Optional
online Handler
@@ -92,7 +92,7 @@
+Defined in src/pools/pool.ts:24
+Defined in src/pools/cluster/fixed.ts:24
Optional
worker Choice Strategy
worker Choice Strategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
@@ -109,7 +109,7 @@
+Defined in src/pools/pool.ts:32
Returns Promise < Response >
+Defined in src/pools/pool.ts:54
set Worker Choice Strategy
Returns void
+Defined in src/pools/pool.ts:64
Returns void
+Defined in src/pools/pool-worker.ts:40
on( event: "error" , handler: ErrorHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:47
on( event: "online" , handler: OnlineHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:54
on( event: "exit" , handler: ExitHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:61
+Defined in src/pools/pool-worker.ts:68
+Defined in src/pools/pool.ts:32
+Defined in src/worker/worker-options.ts:68
Optional
max Inactive Time
max Inactive Time?: number
@@ -73,7 +73,7 @@ when this timeout expires your tasks is interrupted and the worker is killed if
Default 60000 ms
+Defined in src/worker/worker-options.ts:51
+Defined in src/pools/pool-worker.ts:18
+Defined in src/pools/pool-worker.ts:28
+Defined in src/pools/pool-worker.ts:13
+Defined in src/pools/pool-worker.ts:23
Handler Id of the
aliveInterval
worker alive check.