X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=e47007644f326d0f597368c00ba04242c6cce985;hb=761b0c73be0bf581f50a78123913f933bd405f52;hp=b314d771a729005b972e962e4556c3111b8d5b84;hpb=5abbf08a224670226e5432695f490fa44ff34937;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index b314d771..e4700764 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -42,7 +42,7 @@
+Defined in src/pools/pool.ts:119
Optional
Readonly
emitter
@@ -89,7 +89,7 @@
+Defined in src/pools/pool.ts:142
enableTasksQueue
@@ -115,31 +115,31 @@
Returns void
+Defined in src/pools/pool.ts:188
execute
-execute: ((data: Data) => Promise<Response>)
+execute: ((data?: Data) => Promise<Response>)
Type declaration
-
-- (data: Data): Promise<Response>
+- (data?: Data): Promise<Response>
-
-
Returns number
+Defined in src/pools/pool.ts:152
setTasksQueueOptions
@@ -180,7 +180,7 @@
Returns void
+Defined in src/pools/pool.ts:197
setWorkerChoiceStrategy
set
Worker
Choice
Strategy
: ((workerChoiceStrategy
: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN", workerChoiceStrategyOptions
?: WorkerChoiceStrategyOptions) => void)
@@ -206,7 +206,7 @@
Returns void
+Defined in src/pools/pool.ts:170
setWorkerChoiceStrategyOptions
@@ -228,7 +228,7 @@
Returns void
+Defined in src/pools/pool.ts:179
Readonly
type
@@ -236,14 +236,14 @@
If it is 'dynamic'
, it provides the max
property.
+Defined in src/pools/pool.ts:129
+Defined in src/pools/pool.ts:133
Executes the function specified in the constructor with the task data parameter.
+Executes the function specified in the worker constructor with the task data input parameter.
-Returns
Promise that will be resolved when the task is successfully completed.
+Returns
Promise that will be fulfilled when the task is completed.
Parameters
data: Data
-The input for the specified task. This can only be serializable data.
+
+Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
Returns Promise<Response>
find Free Worker Node Key