X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FThreadPoolOptions.html;h=ee4bfc4d21739bc1702aaabfa13346a0e1e85668;hb=baff6fa397ec7acc3a3d0f14bc143e1df4a5230e;hp=bc01e96a388847d6f5b559f22a36cdb42b85bd82;hpb=5e7fdc4a7f8c01824825abd4ad57ec787a4beea7;p=poolifier.git diff --git a/docs/interfaces/ThreadPoolOptions.html b/docs/interfaces/ThreadPoolOptions.html index bc01e96a..ee4bfc4d 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:127
Optional
messageA function that will listen for message event on each worker.
Default Value
+() => {}
Inherited from PoolOptions.messageHandler
-- Defined in src/pools/pool.ts:115
Optional
onlineA function that will listen for online event on each worker.
Default Value
+() => {}
Inherited from PoolOptions.onlineHandler
-- Defined in src/pools/pool.ts:123
Optional
restartInherited from PoolOptions.restartWorkerOnError
-- Defined in src/pools/pool.ts:141
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:157
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:133
Optional
workerInherited from PoolOptions.workerChoiceStrategyOptions
-- Defined in src/pools/pool.ts:137
Optional
workerSee
https://nodejs.org/api/worker_threads.html#new-workerfilename-options
-- Defined in src/pools/thread/fixed.ts:23