X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=9839ac139b1984a50c829efd4060c78d7cf895c8;hb=afc003b20097712625ffd053e256ef5336e27b6e;hp=66ad9b5b6dc400a2edc002a84b78044da6559b57;hpb=1938bc376fa92d0c773c4c23b0305291ab483e6c;p=poolifier.git
diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html
index 66ad9b5b..9839ac13 100644
--- a/docs/classes/DynamicThreadPool.html
+++ b/docs/classes/DynamicThreadPool.html
@@ -18,7 +18,7 @@
Maximum number of threads that can be created by this pool.
+Protected
Readonly
maxPrivate
Readonly
max
Readonly
numberReadonly
optsProtected
promiseProtected
workerWorker choice strategy instance implementing the worker choice algorithm.
-Default to a strategy implementing a round robin algorithm.
+Worker choice strategy context referencing a worker choice algorithm implementation.
+Default to a round robin algorithm.
Readonly
workers{@inheritDoc}
Private
numberNumber of tasks concurrently running in the pool.
+Protected
afterProtected
beforeProtected
chooseChooses a worker for the next task.
-The default implementation uses a round robin algorithm to distribute the load.
+The default uses a round robin algorithm to distribute the load.
[worker key, worker].
Protected
createProtected
createProtected
internalProtected
internalProtected
isProtected
removeProtected
sendProtected
setupProtected
worker
A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.
This thread pool creates new threads when the others are busy, up to the maximum number of threads. -When the maximum number of threads is reached, an event is emitted. If you want to listen to this event, use the pool's
+When the maximum number of threads is reached and workers are busy, an event is emitted. If you want to listen to this event, use the pool'semitter
.emitter
.Author
Alessandro Pio Ardizio
@@ -42,7 +42,7 @@ When the maximum number of threads is reached, an event is emitted. If you want@@ -56,7 +56,7 @@ When the maximum number of threads is reached, an event is emitted. If you wantemitter?
file Path
-max
+max
number Of Workers
opts
promise Response Map
@@ -66,7 +66,8 @@ When the maximum number of threads is reached, an event is emitted. If you want
busy
-number Of Running Tasks
+full
+number Of Running Tasks
type
@@ -81,7 +82,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
destroy Worker
execute
find Free Worker Key
-internal Get Busy Status
+internal Busy
is Main
register Worker Message Listener
remove Worker
@@ -128,7 +129,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
+Defined in src/pools/thread/dynamic.ts:29
@@ -138,7 +139,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Properties
Accessors
Returns DynamicThreadPool<Data, Response>
Properties
Readonly
file