X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=b13db3bd94fe758b1c7995771be76339065a6d93;hb=dab8c377b70fc962ec217f2aeb719842f9f94cd6;hp=986350f803272fc19cf3b139b714db7ee2a3f0f1;hpb=86f5c6c11d0a262b6514b95928b2534eecc37a4e;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 986350f8..b13db3bd 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.