X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=b3df2c984ff29722a4e8844e6247ff04a35b5f39;hb=2ad2e730485a924c6a03e6f6a1bc64b413b01527;hp=b81dba1f78e565d1768cfd7e580831278660bca7;hpb=8bd0b5363ad2defbce7c1cc49e616c24ad135dde;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index b81dba1f..b3df2c98 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -34,7 +34,7 @@
+Defined in src/pools/pool.ts:80
Optional
Readonly
emitter
+Defined in src/pools/pool.ts:89
execute
execute: ((data: Data) => Promise<Response>)
@@ -98,16 +99,16 @@
Returns Promise<Response>
+Defined in src/pools/pool.ts:96
setWorkerChoiceStrategy
-setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
+setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
Type declaration
-
-- (workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"): void
+- (workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"): void
-
@@ -115,12 +116,12 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
Returns void
+Defined in src/pools/pool.ts:106
Emitter on which events can be listened to.
Events that can currently be listened to:
-
+
+
'busy'
'full'
: Emitted when the pool is dynamic and full.'busy'
: Emitted when the pool is busy.