X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIPool.html;h=0c22722b96bf9a41becf44dc0b8b7c85a7cdf5be;hb=8d98e603c79d8d00b2b6a33e5f732701a7466234;hp=42a94ebafa20534278976c4a9223294071645a35;hpb=7d3ed70ed3ebb6a3656041db3c6ea23a1f354616;p=poolifier.git
diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html
index 42a94eba..0c22722b 100644
--- a/docs/interfaces/IPool.html
+++ b/docs/interfaces/IPool.html
@@ -1,4 +1,4 @@
-
IPool | poolifier
+IPool | poolifier
@@ -18,19 +18,19 @@
-
+
Type Parameters
-
+
-
-
Worker extends IWorker
+Worker extends IWorker
-
-
Data = unknown
+Data = unknown
-
-
Response = unknown
+Response = unknown
+Defined in src/pools/pool.ts:156
@@ -50,95 +50,138 @@
Properties
-
+
destroy
-destroy: (() => Promise<void>)
+destroy: (() => Promise<void>)
Type declaration
-
-
-- (): Promise<void>
+
+- (): Promise<void>
-
-
Returns Promise<void>
-
+
Optional
Readonly
emitter
-
+
-
+
+enableTasksQueue
+enableTasksQueue: ((enable, tasksQueueOptions?) => void)
+
+
Type declaration
+
+-
+
+- (enable, tasksQueueOptions?): void
+-
+
+
+
Parameters
+
+-
+
enable: boolean
+
+-
+
+
+Returns void
+
execute
-execute: ((data: Data) => Promise<Response>)
+execute: ((data?, name?) => Promise<Response>)
Type declaration
-
-
+
setWorkerChoiceStrategy
-setWorkerChoiceStrategy: ((workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN") => void)
+setWorkerChoiceStrategy: ((workerChoiceStrategy, workerChoiceStrategyOptions?) => void)
Type declaration
-
-
-- (workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"): void
+
+- (workerChoiceStrategy, workerChoiceStrategyOptions?): void
-
@@ -146,27 +189,45 @@
Parameters
-
-
workerChoiceStrategy: "ROUND_ROBIN" | "LESS_USED" | "LESS_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN"
+workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
+-
+
+
Returns void
-
+
+setWorkerChoiceStrategyOptions
+setWorkerChoiceStrategyOptions: ((workerChoiceStrategyOptions) => void)
+
+
Type declaration
+
+-
+
+- (workerChoiceStrategyOptions): void
+-
+
+
+
Returns void
-
+
+
Defined in src/pools/pool.ts:168
+Theme
On This Page
+destroy
+emitter
+enableTasksQueue
+execute
+info
+setTasksQueueOptions
+setWorkerChoiceStrategy
+setWorkerChoiceStrategyOptions
+workerNodes
+AbstractPool
+AbstractWorker
+CircularArray
+ClusterWorker
+DynamicClusterPool
+DynamicThreadPool
+FixedClusterPool
+FixedThreadPool
+PoolEmitter
+Queue
+ThreadWorker
+WorkerChoiceStrategyContext
+ClusterPoolOptions
+IPool
+IWorker
+IWorkerChoiceStrategy
+MessageValue
+PoolInfo
+PoolOptions
+PromiseResponseWrapper
+RequiredStatistics
+Task
+TasksQueueOptions
+TasksUsage
+WorkerChoiceStrategyOptions
+WorkerNode
+WorkerOptions
+Draft
+ErrorHandler
+ExitHandler
+KillBehavior
+MessageHandler
+OnlineHandler
+PoolEvent
+PoolType
+TaskFunctions
+ThreadWorkerWithMessageChannel
+WorkerAsyncFunction
+WorkerChoiceStrategy
+WorkerFunction
+WorkerSyncFunction
+WorkerType
+KillBehaviors
+PoolEvents
+PoolTypes
+WorkerChoiceStrategies
+WorkerTypes
\ No newline at end of file
Contract definition for a poolifier pool.