X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FIPool.html;h=880f37c440bf2e0659dc1e61aac46835d22a6a89;hb=21402562176f7550bcd9ba620cf551972fca6e98;hp=520a5ea324bbb43c4baacdd98c496b8b0ee80a62;hpb=797996a92f40d5779cd31314b59462e41d529989;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 520a5ea3..880f37c4 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.