X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIPool.html;h=93f4694004b0290113fc74ab1cb6a676cc29565e;hb=460aaab4b4cb6857827d3e56e11122bffc01db8a;hp=96b35a0646f9e43adbde6371a5768ab29a460c40;hpb=dea288f11483ea6c15807b20e4c621483c7fa5af;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 96b35a06..93f46940 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -42,7 +42,7 @@
+Defined in src/pools/pool.ts:156
@@ -77,7 +76,7 @@
Returns Promise<void>
+Defined in src/pools/pool.ts:191
Optional
Readonly
emitter
@@ -86,10 +85,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:179
enableTasksQueue
enableTasksQueue: ((enable, tasksQueueOptions?) => void)
@@ -115,7 +116,7 @@
Returns void
+Defined in src/pools/pool.ts:216
execute
execute: ((data?, name?) => Promise<Response>)
@@ -126,7 +127,7 @@
- (data?, name?): Promise<Response>
-
-
Returns void
+Defined in src/pools/pool.ts:225
setWorkerChoiceStrategy
setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
@@ -181,7 +189,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 +198,7 @@
Returns void
+Defined in src/pools/pool.ts:198
setWorkerChoiceStrategyOptions
setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
@@ -212,29 +220,14 @@
Returns void
-
-Readonly
size
-size: number
-
-
+Defined in src/pools/pool.ts:207
+Defined in src/pools/pool.ts:168
+PoolTypes
+WorkerChoiceStrategies
+WorkerTypes
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 +143,14 @@Returns Promise<Response>
Promise that will be fulfilled when the task is completed.
+Readonly
infoPool information.
+set Tasks Queue Options