X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=78acb1c92fad7956b4ad292dbf6c135d5b10015a;hb=956cfeccbd168a90f3d9acb1729975cf3f861a77;hp=2e4ac39bb2c6b59b9a53c46f17524edb637d9eca;hpb=ec74f6ae420613c4430428a5cadfa1c36acabc6e;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 2e4ac39b..78acb1c9 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -42,7 +42,7 @@
+Defined in src/pools/pool.ts:119
@@ -76,7 +77,7 @@
Returns Promise<void>
+Defined in src/pools/pool.ts:158
Optional
Readonly
emitter
@@ -88,7 +89,7 @@
+Defined in src/pools/pool.ts:146
enableTasksQueue
enableTasksQueue: ((enable, tasksQueueOptions?) => void)
@@ -114,18 +115,18 @@
Returns void
+Defined in src/pools/pool.ts:183
execute
-execute: ((data?) => Promise<Response>)
+execute: ((data?, name?) => Promise<Response>)
Type declaration
-
setTasksQueueOptions
setTasksQueueOptions: ((tasksQueueOptions) => void)
@@ -159,7 +164,7 @@
Returns void
+Defined in src/pools/pool.ts:192
setWorkerChoiceStrategy
setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
@@ -185,7 +190,7 @@
Returns void
+Defined in src/pools/pool.ts:165
setWorkerChoiceStrategyOptions
setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
@@ -207,7 +212,14 @@
Returns void
+Defined in src/pools/pool.ts:174
+
+Readonly
size
+size: number
+
Readonly
type
@@ -215,14 +227,14 @@
If it is 'dynamic'
, it provides the max
property.
+Defined in src/pools/pool.ts:129
+Defined in src/pools/pool.ts:137
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
@@ -133,11 +134,15 @@Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
+
+Optional
name: stringThe name of the worker function to execute. If not specified, the default worker function will be executed.
Returns Promise<Response>
Promise that will be fulfilled when the task is completed.