X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Finterfaces%2FThreadPoolOptions.html;h=742a75568405da5efcbecc94a5a380810f62ec31;hb=a09a79a68dbaf04a9dff2f9d9dcc37da8c7dd314;hp=4fe36fd28ae73c939a766ac90833f717f44c27ec;hpb=c90257c0b2d2c8ebdc6abbee02361cc2ddae36b9;p=poolifier.git diff --git a/docs/interfaces/ThreadPoolOptions.html b/docs/interfaces/ThreadPoolOptions.html index 4fe36fd2..742a7556 100644 --- a/docs/interfaces/ThreadPoolOptions.html +++ b/docs/interfaces/ThreadPoolOptions.html @@ -1,13 +1,13 @@ -
Optional
enableOptional
enableGenerated using TypeDoc
Generated using TypeDoc
Pool events emission.
+Pool events integrated with async resource emission.
Default Value
true
+Default Value
Optional
enablePool worker tasks queue.
+Pool worker node tasks queue.
Default Value
false
+Default Value
Optional
errorA function that will listen for error event on each worker.
Optional
exitA function that will listen for exit event on each worker.
Default Value
+() => {}
Inherited from PoolOptions.exitHandler
-- Defined in src/pools/pool.ts:131
Optional
messageA function that will listen for message event on each worker.
Default Value
+() => {}
Inherited from PoolOptions.messageHandler
-- Defined in src/pools/pool.ts:123
Optional
onlineA function that will listen for online event on each worker.
Default Value
+() => {}
Inherited from PoolOptions.onlineHandler
-- Defined in src/pools/pool.ts:119
Optional
restartInherited from PoolOptions.restartWorkerOnError
-- Defined in src/pools/pool.ts:145
Workers
+Optional
startWhether to start the minimum number of workers at pool initialization.
+Default Value
+Inherited from PoolOptions.startWorkers
++- Defined in src/pools/pool.ts:161
Optional
tasksPool worker tasks queue options.
+Pool worker node tasks queue options.
Inherited from PoolOptions.tasksQueueOptions
-- Defined in src/pools/pool.ts:161
Optional
workerThe worker choice strategy to use in this pool.
Default Value
WorkerChoiceStrategies.ROUND_ROBIN
+Default Value
Inherited from PoolOptions.workerChoiceStrategy
-- Defined in src/pools/pool.ts:137
Optional
workerInherited from PoolOptions.workerChoiceStrategyOptions
-- Defined in src/pools/pool.ts:141
Optional
workerSee
https://nodejs.org/api/worker_threads.html#new-workerfilename-options
-- Defined in src/pools/thread/fixed.ts:24