X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=3a2a169dab4b2b7c7f661724dd8fe1f9a5b65031;hb=54f4e726f7e6c2ee917735b489fafde0dd7100bd;hp=b0efe8eafda0a5e886abc55dc09118b8f753d287;hpb=a47027a0bf90ce21b528708dadd0eb23b5537b43;p=poolifier.git
diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html
index b0efe8ea..3a2a169d 100644
--- a/docs/interfaces/IWorkerChoiceStrategy.html
+++ b/docs/interfaces/IWorkerChoiceStrategy.html
@@ -1,4 +1,4 @@
-
IWorkerChoiceStrategy | poolifier - v2.6.21
+IWorkerChoiceStrategy | poolifier - v2.6.39
@@ -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
.