X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIPool.html;h=071c59d5926ddfbe3a763dd6300d28b8d70476e5;hb=94ab998f44abe7ed2184a0702c45621b06f5641f;hp=e6efa97ac08bdfa80927dc12ba3482016eb0a280;hpb=67ff85c0f9bf4f18372728327fc5373f17d9e13a;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index e6efa97a..071c59d5 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -34,7 +34,7 @@
+Defined in src/pools/pool.ts:66
Optional
Readonly
emitter
+Defined in src/pools/pool.ts:75
execute
execute: ((data: Data) => Promise<Response>)
@@ -98,16 +99,16 @@
Returns Promise<Response>
+Defined in src/pools/pool.ts:82
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:92
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.