From: Jérôme Benoit
Date: Sat, 8 Oct 2022 16:55:05 +0000 (+0200)
Subject: Version 2.2.1
X-Git-Tag: v2.2.1~3
X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fe9f25b5ac98c7c7fccd1849a200c5054a77cf03;p=poolifier.git
Version 2.2.1
Signed-off-by: Jérôme Benoit
---
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index fca9252d..d576ab4f 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:190
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 a6fc7d3c..17cb6c13 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:190
+Defined in src/worker/cluster-worker.ts:42
trigger Async Id
diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html
index 80576199..0fcdc4cc 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
@@ -131,7 +131,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
@@ -141,13 +141,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:36
Readonly
file Path
file Path: string
+Defined in src/pools/abstract-pool.ts:79
Readonly
max
max: number
@@ -155,7 +155,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
@@ -163,19 +163,19 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:57
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:78
+Defined in src/pools/cluster/fixed.ts:47
Protected
promise Map
promise Map: Map < number , PromiseWorkerResponseWrapper < Worker , Response > > = ...
@@ -188,7 +188,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:49
Readonly
tasks
tasks: Map < Worker , number > = ...
@@ -196,7 +196,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
Protected
worker Choice Strategy Context
worker Choice Strategy Context: WorkerChoiceStrategyContext < Worker , Data , Response >
@@ -205,7 +205,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:64
Readonly
workers
workers: Worker [] = []
@@ -213,7 +213,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:30
Accessors
@@ -226,7 +226,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:150
+Defined in src/pools/cluster/dynamic.ts:38
Methods
@@ -266,7 +266,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Returns void
+Defined in src/pools/cluster/fixed.ts:89
+Defined in src/pools/abstract-pool.ts:283
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:337
+Defined in src/pools/cluster/fixed.ts:84
Protected
decrease Workers Tasks
+Defined in src/pools/abstract-pool.ts:246
+Defined in src/pools/abstract-pool.ts:208
+Defined in src/pools/cluster/fixed.ts:65
+Defined in src/pools/abstract-pool.ts:196
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:160
+Defined in src/pools/abstract-pool.ts:155
Protected
increase Workers Task
+Defined in src/pools/abstract-pool.ts:237
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:308
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:177
+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:270
+Defined in src/pools/cluster/fixed.ts:71
+Defined in src/pools/abstract-pool.ts:165
+Defined in src/pools/cluster/fixed.ts:53
Protected
worker Listener
@@ -587,7 +587,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
Returns void
+Defined in src/pools/abstract-pool.ts:361
+Defined in src/pools/thread/dynamic.ts:31
Protected
next Message Id
next Message Id: number = 0
@@ -163,19 +163,19 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:57
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:78
+Defined in src/pools/abstract-pool.ts:80
Protected
promise Map
@@ -188,7 +188,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:49
Readonly
tasks
@@ -196,7 +196,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
Protected
worker Choice Strategy Context
@@ -205,7 +205,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/abstract-pool.ts:64
Readonly
workers
@@ -213,7 +213,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:30
Accessors
@@ -226,7 +226,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:150
+Defined in src/pools/thread/dynamic.ts:39
Methods
@@ -266,7 +266,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Returns void
+Defined in src/pools/thread/fixed.ts:80
+Defined in src/pools/abstract-pool.ts:283
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:337
+Defined in src/pools/thread/fixed.ts:73
Protected
decrease Workers Tasks
+Defined in src/pools/abstract-pool.ts:246
+Defined in src/pools/abstract-pool.ts:208
+Defined in src/pools/thread/fixed.ts:49
+Defined in src/pools/abstract-pool.ts:196
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:160
+Defined in src/pools/abstract-pool.ts:155
Protected
increase Workers Task
+Defined in src/pools/abstract-pool.ts:237
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:308
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:177
+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:270
+Defined in src/pools/thread/fixed.ts:57
+Defined in src/pools/abstract-pool.ts:165
+Defined in src/pools/abstract-pool.ts:223
Protected
worker Listener
@@ -588,7 +588,7 @@ to run code before workers are created in the abstract constructor.
Returns void
+Defined in src/pools/abstract-pool.ts:361
+Defined in src/pools/abstract-pool.ts:39
Protected
next Message Id
next Message Id: number = 0
@@ -161,19 +161,19 @@
+Defined in src/pools/abstract-pool.ts:57
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:78
+Defined in src/pools/cluster/fixed.ts:47
Protected
promise Map
promise Map: Map < number , PromiseWorkerResponseWrapper < Worker , Response > > = ...
@@ -186,7 +186,7 @@
+Defined in src/pools/abstract-pool.ts:49
Readonly
tasks
tasks: Map < Worker , number > = ...
@@ -194,7 +194,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Protected
worker Choice Strategy Context
worker Choice Strategy Context: WorkerChoiceStrategyContext < Worker , Data , Response >
@@ -203,7 +203,7 @@
+Defined in src/pools/abstract-pool.ts:64
Readonly
workers
workers: Worker [] = []
@@ -211,7 +211,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:30
+Defined in src/pools/abstract-pool.ts:150
+Defined in src/pools/cluster/fixed.ts:95
+Defined in src/pools/abstract-pool.ts:283
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:337
+Defined in src/pools/cluster/fixed.ts:84
Protected
decrease Workers Tasks
+Defined in src/pools/abstract-pool.ts:246
+Defined in src/pools/abstract-pool.ts:208
+Defined in src/pools/cluster/fixed.ts:65
+Defined in src/pools/abstract-pool.ts:196
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:160
+Defined in src/pools/abstract-pool.ts:155
Protected
increase Workers Task
+Defined in src/pools/abstract-pool.ts:237
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:308
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:177
+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:270
+Defined in src/pools/cluster/fixed.ts:71
+Defined in src/pools/abstract-pool.ts:165
+Defined in src/pools/cluster/fixed.ts:53
Protected
worker Listener
@@ -585,7 +585,7 @@
Returns void
+Defined in src/pools/abstract-pool.ts:361
+Defined in src/pools/abstract-pool.ts:39
Protected
next Message Id
next Message Id: number = 0
@@ -161,19 +161,19 @@
+Defined in src/pools/abstract-pool.ts:57
Readonly
number Of Workers
number Of Workers: number
+Defined in src/pools/abstract-pool.ts:78
+Defined in src/pools/abstract-pool.ts:80
Protected
promise Map
@@ -186,7 +186,7 @@
+Defined in src/pools/abstract-pool.ts:49
Readonly
tasks
@@ -194,7 +194,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:33
Protected
worker Choice Strategy Context
@@ -203,7 +203,7 @@
+Defined in src/pools/abstract-pool.ts:64
Readonly
workers
@@ -211,7 +211,7 @@
Inherit Doc
+Defined in src/pools/abstract-pool.ts:30
+Defined in src/pools/abstract-pool.ts:150
+Defined in src/pools/thread/fixed.ts:90
+Defined in src/pools/abstract-pool.ts:283
Protected
create And Setup Worker
+Defined in src/pools/abstract-pool.ts:337
+Defined in src/pools/thread/fixed.ts:73
Protected
decrease Workers Tasks
+Defined in src/pools/abstract-pool.ts:246
+Defined in src/pools/abstract-pool.ts:208
+Defined in src/pools/thread/fixed.ts:49
+Defined in src/pools/abstract-pool.ts:196
+Defined in src/pools/abstract-pool.ts:185
+Defined in src/pools/abstract-pool.ts:160
+Defined in src/pools/abstract-pool.ts:155
Protected
increase Workers Task
+Defined in src/pools/abstract-pool.ts:237
Protected
internal Execute
+Defined in src/pools/abstract-pool.ts:308
Protected
internal Get Busy Status
+Defined in src/pools/abstract-pool.ts:177
+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:270
+Defined in src/pools/thread/fixed.ts:57
+Defined in src/pools/abstract-pool.ts:165
+Defined in src/pools/abstract-pool.ts:223
Protected
worker Listener
@@ -586,7 +586,7 @@ to run code before workers are created in the abstract constructor.
Returns void
+Defined in src/pools/abstract-pool.ts:361
+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:190
+Defined in src/worker/thread-worker.ts:36
trigger Async Id
diff --git a/docs/interfaces/ClusterPoolOptions.html b/docs/interfaces/ClusterPoolOptions.html
index 416094ba..92d3fe1e 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
message Handler?: MessageHandler < Worker >
@@ -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"
@@ -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:44
on( event: "error" , handler: ErrorHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:51
on( event: "online" , handler: OnlineHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:58
on( event: "exit" , handler: ExitHandler < IPoolWorker > ) : void
Returns void
+Defined in src/pools/pool-worker.ts:65
+Defined in src/pools/pool-worker.ts:72
+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 60.000 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:23
Handler Id of the
aliveInterval
worker alive check.