From: Jérôme Benoit
Date: Sat, 15 Oct 2022 05:37:24 +0000 (+0200)
Subject: Update API documentation
X-Git-Tag: v2.3.2~3^2
X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=301c53e7ae6cf1120298ea10868a9091904c01a2;p=poolifier.git
Update API documentation
Signed-off-by: Jérôme Benoit
---
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index c048f6f6..88a908c3 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,13 +210,13 @@ the AsyncResource
to which the function is bound.
Returns void
+Defined in src/worker/abstract-worker.ts:144
Private
check Function Input
check Function Input( fn: ( ( data: Data ) => Response ) ) : void
-
Returns void
+Defined in src/worker/abstract-worker.ts:103
emit Destroy
@@ -279,13 +279,13 @@ never be called.
Returns MainWorker
+Defined in src/worker/abstract-worker.ts:127
Protected
handle Error
handle Error( e: string | Error ) : string
-
Returns string
+Defined in src/worker/abstract-worker.ts:159
Protected
message Listener
@@ -324,13 +324,13 @@ never be called.
Returns Response
Returns void
+Defined in src/worker/abstract-worker.ts:81
Protected
run
run( fn: ( ( data?: Data ) => Response ) , value: MessageValue < Data , unknown > ) : void
-
Returns void
+Defined in src/worker/abstract-worker.ts:169
Protected
run Async
run Async( fn: ( ( data?: Data ) => Promise < Response > ) , value: MessageValue < Data , unknown > ) : void
-
Returns void
+Defined in src/worker/abstract-worker.ts:192
run In Async Scope
@@ -445,7 +445,7 @@ then restore the original execution context.
send To Main Worker( message: MessageValue < Response , unknown > ) : void
-
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 53205cf2..22d28163 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
Protected
handle Error
handle Error( e: string | Error ) : string
-
+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
Protected
remove Worker
@@ -551,12 +551,12 @@ Can be overridden.
worker: Worker
-
Returns void
+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/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 threads is reached, an event is emitted. If you want
Inherit Doc
+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
Protected
remove Worker
@@ -551,12 +551,12 @@ Can be overridden.
+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:42
Readonly
file Path
file Path: string
+Defined in src/pools/abstract-pool.ts:85
Optional
Readonly
max
max?: number
@@ -155,7 +155,7 @@
Inherit Doc
+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
Protected
remove Worker
@@ -549,12 +549,12 @@ Can be overridden.
worker: Worker
-
Returns void
+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:42
Readonly
file Path
file Path: string
+Defined in src/pools/abstract-pool.ts:85
Optional
Readonly
max
max?: number
@@ -155,7 +155,7 @@
Inherit Doc
+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
Protected
remove Worker
@@ -549,12 +549,12 @@ Can be overridden.
+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
Protected
handle Error
handle Error( e: string | Error ) : string
-
+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.