X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=469494de62a8aa39c2bc3dcf15eccc999f5a2f09;hb=95d287d1625c80929657a9f217774c5c8f6668e7;hp=a09dd255ac16854720cb45ba7be4a70150eb2efd;hpb=6acf0df125c95248e1c05c38e97c7676b48f6a1a;p=poolifier.git
diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html
index a09dd255..469494de 100644
--- a/docs/interfaces/IWorkerChoiceStrategy.html
+++ b/docs/interfaces/IWorkerChoiceStrategy.html
@@ -1,4 +1,4 @@
-
IWorkerChoiceStrategy | poolifier - v2.6.16
+IWorkerChoiceStrategy | poolifier - v2.6.41
@@ -24,7 +24,7 @@
+
Defined in src/pools/selection-strategies/selection-strategies-types.ts:168
@@ -44,21 +44,22 @@
Properties
Readonly
choose
-choose: (() => number)
+choose: (() => undefined | number)
Type declaration
-
Readonly
remove
remove: ((workerNodeKey) => boolean)
@@ -77,13 +78,12 @@
-
workerNodeKey: number
-
+
Returns boolean
true
if the worker node key is removed, false
otherwise.
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:202
Readonly
reset
reset: (() => boolean)
@@ -100,7 +100,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:182
Readonly
setOptions
setOptions: ((opts) => void)
@@ -119,12 +119,11 @@
-
+
Returns void
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:208
Readonly
strategyPolicy
@@ -132,7 +131,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:172
Readonly
taskStatisticsRequirements
@@ -140,7 +139,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:176
Readonly
update
update: ((workerNodeKey) => boolean)
@@ -162,7 +161,7 @@
+Defined in src/pools/selection-strategies/selection-strategies-types.ts:188
+Generated using TypeDoc
\ No newline at end of file
Chooses a worker node in the pool and returns its key.
+Chooses a worker node in the pool and returns its key. +If the worker node is not eligible,
undefined
is returned.Returns number
The worker node key.
+Returns undefined | number
The worker node key or
undefined
.