@@ -45,7 +45,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/thread/dynamic.ts:15
@@ -73,6 +73,7 @@ When the maximum number of threads is reached and workers are busy, an event is
info
max Size
min Size
+ready
type
utilization
worker
@@ -82,6 +83,7 @@ When the maximum number of threads is reached and workers are busy, an event is
after Task Execution Hook
after Worker Setup
before Task Execution Hook
+
check Dynamic Pool Size
create And Setup Dynamic Worker
create And Setup Worker
create Worker
@@ -89,8 +91,12 @@ When the maximum number of threads is reached and workers are busy, an event is
destroy Worker
enable Tasks Queue
execute
+
get Worker Info By Worker
+
get Worker Node Key
internal Busy
is Main
+
register Worker Message Listener
+
send Startup Message To Worker
send To Worker
set Tasks Queue Options
set Worker Choice Strategy
@@ -141,7 +147,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/thread/dynamic.ts:27
Properties
@@ -150,8 +156,9 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/thread/dynamic.ts:29
Protected
Readonly
number Of Workers
number Of Workers : number
@@ -185,7 +192,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:105
Protected
Readonly
opts
@@ -194,7 +201,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/thread/fixed.ts:48
Protected
promise Response Map
@@ -208,7 +215,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:74
Protected
worker Choice Strategy Context
@@ -217,7 +224,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:82
Readonly
worker Nodes
@@ -226,7 +233,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+
Defined in src/pools/abstract-pool.ts:61
Accessors
@@ -241,7 +248,7 @@ When the maximum number of threads is reached and workers are busy, an event is
+Defined in src/pools/thread/dynamic.ts:48
+
Defined in src/pools/abstract-pool.ts:591
+
Defined in src/pools/abstract-pool.ts:294
+
Defined in src/pools/thread/dynamic.ts:43
+
Defined in src/pools/thread/fixed.ts:116
+
+Private
ready
+
+get ready( ) : boolean
+
+Returns boolean
+
Defined in src/pools/thread/dynamic.ts:38
+
Defined in src/pools/abstract-pool.ts:447
+
Defined in src/pools/thread/fixed.ts:111
Protected
after Worker Setup
+
Defined in src/pools/abstract-pool.ts:941
Protected
before Task Execution Hook
+
Defined in src/pools/abstract-pool.ts:696
+
+Protected
check Dynamic Pool Size
+
+check Dynamic Pool Size ( min , max ) : void
+
+
+
Parameters
+
+
+min : number
+
+max : number
+Returns void
Protected
create And Setup Dynamic Worker
+
Defined in src/pools/abstract-pool.ts:896
Protected
create And Setup Worker
+
Defined in src/pools/abstract-pool.ts:856
+
Defined in src/pools/thread/fixed.ts:98
+
Defined in src/pools/abstract-pool.ts:651
+
Defined in src/pools/thread/fixed.ts:59
+
Defined in src/pools/abstract-pool.ts:556
+
Defined in src/pools/abstract-pool.ts:616
+
+Protected
get Worker Info By Worker
+
+get Worker Info By Worker ( worker ) : WorkerInfo
+
+
+
+The worker information.
+
+
+
+Protected
get Worker Node Key
+
+
Defined in src/pools/abstract-pool.ts:607
+
Defined in src/pools/thread/fixed.ts:54
+
+Protected
register Worker Message Listener
+
+register Worker Message Listener < Message > ( worker , listener ) : void
+
+
+
+
+
Parameters
+
+
+worker : Worker
+
+
+
+listener : ( ( message ) => void )
+
+
+
+
+
+( message ) : void
+
+
+Returns void
+Returns void
+
+
+Protected
send Startup Message To Worker
+
+send Startup Message To Worker ( worker ) : void
+
+
+
+Returns void
+
+
Defined in src/pools/thread/fixed.ts:66
+
Defined in src/pools/abstract-pool.ts:568
+
Defined in src/pools/abstract-pool.ts:526
set Worker Choice Strategy Options
+
Defined in src/pools/abstract-pool.ts:545
+
Defined in src/pools/abstract-pool.ts:680
+Defined in src/pools/abstract-pool.ts:992
Emitter on which events can be listened to.
Events that can currently be listened to:
-
-
+
+
+
@@ -159,7 +166,7 @@ When the maximum number of threads is reached and workers are busy, an event is +'full'
: Emitted when the pool is dynamic and full.'busy'
: Emitted when the pool is busy.'full'
: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.'ready'
: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.'busy'
: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Protected
Readonly
fileProtected
Readonly
max