From: Jérôme Benoit
Date: Sat, 15 Oct 2022 06:08:22 +0000 (+0200)
Subject: Updae API documentation
X-Git-Tag: v2.3.3~2
X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6c7b620077f30f365d597b7fce35cfe5584c2702;p=poolifier.git
Updae API documentation
Signed-off-by: Jérôme Benoit
---
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index 88a908c3..bf014c7d 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 22d28163..4bc95227 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 9fa48bd1..bef6f7e5 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:47
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:89
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:84
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/cluster/fixed.ts:65
+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:60
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:76
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/cluster/fixed.ts:71
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/cluster/fixed.ts:53
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:47
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:95
Protected
after Worker Setup
+Defined in src/pools/cluster/fixed.ts:89
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:84
+Defined in src/pools/abstract-pool.ts:222
+Defined in src/pools/cluster/fixed.ts:65
+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:60
register Worker Message Listener
+Defined in src/pools/cluster/fixed.ts:76
+Defined in src/pools/abstract-pool.ts:277
+Defined in src/pools/cluster/fixed.ts:71
+Defined in src/pools/abstract-pool.ts:176
+Defined in src/pools/cluster/fixed.ts:53
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 20363fac..940e215b 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
@@ -67,7 +67,7 @@
+Defined in src/pools/pool.ts:20
Optional
exit Handler
@@ -75,7 +75,7 @@
+Defined in src/pools/pool.ts:28
Optional
message Handler
@@ -83,7 +83,7 @@
+Defined in src/pools/pool.ts:16
Optional
online Handler
@@ -91,7 +91,7 @@
+Defined in src/pools/pool.ts:24
Optional
worker Choice Strategy
worker Choice Strategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
@@ -99,7 +99,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.