X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=1c11c1a438d91feb02f9f9edd16933156fed5c9c;hb=ccb7d1a70cd9bd4eb050160517e5bc48311d014f;hp=4abbb36f0841376b114884c7ab246ad66886dcf2;hpb=2c94c3a5da9d6b4a0ac992386907d8a406ee38f7;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 4abbb36f..1c11c1a4 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -42,7 +42,7 @@
+Defined in src/pools/pool.ts:125
Optional
Readonly
emitter
@@ -86,10 +86,12 @@
'full'
: Emitted when the pool is dynamic and full.
'busy'
: Emitted when the pool is busy.
+'error'
: Emitted when an uncaught error occurs.
+'taskError'
: Emitted when an error occurs while executing a task.
+Defined in src/pools/pool.ts:154
enableTasksQueue
enableTasksQueue: ((enable, tasksQueueOptions?) => void)
@@ -115,7 +117,7 @@
Returns void
+Defined in src/pools/pool.ts:191
execute
execute: ((data?, name?) => Promise<Response>)
@@ -126,7 +128,7 @@
- (data?, name?): Promise<Response>
-
-
Returns void
+Defined in src/pools/pool.ts:200
setWorkerChoiceStrategy
setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
@@ -181,7 +183,7 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
-
@@ -190,7 +192,7 @@
Returns void
+Defined in src/pools/pool.ts:173
setWorkerChoiceStrategyOptions
setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
@@ -212,14 +214,14 @@
Returns void
+Defined in src/pools/pool.ts:182
Readonly
size
size: number
+Defined in src/pools/pool.ts:139
Readonly
type
@@ -227,14 +229,14 @@
If it is 'dynamic'
, it provides the max
property.
+Defined in src/pools/pool.ts:135
+Defined in src/pools/pool.ts:143
Executes the function specified in the worker constructor with the task data input parameter.
+Executes the specified function in the worker constructor with the task data input parameter.
Parameters
@@ -142,7 +144,7 @@Returns Promise<Response>
Promise that will be fulfilled when the task is completed.
set Tasks Queue Options