X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicThreadPool.html;h=39b8dfba2aa8c5b38c60e7314b1670e02e4ae9d0;hb=ccb7d1a70cd9bd4eb050160517e5bc48311d014f;hp=0c01dcd0633d6da5c3db434e0949dfab4a1b5cac;hpb=73d8141b526469f4fce46da956280f2b9146accb;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 0c01dcd0..39b8dfba 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is
'full'
: Emitted when the pool is dynamic and full.'busy'
: Emitted when the pool is busy.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Readonly
fileReadonly
maxReadonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workerProtected
fullPrivate
numberPrivate
numberProtected
afterProtected
beforeProtected
chooseChooses a worker node for the next task.
-The default uses a round robin algorithm to distribute the load.
+The default worker choice strategy uses a round robin algorithm to distribute the load.
[worker node key, worker node].
+The worker node key
Protected
createProtected
createProtected
destroyExecutes the function specified in the worker constructor with the task data input parameter.
+Executes the specified function in the worker constructor with the task data input parameter.
Protected
internalProtected
isProtected
registerProtected
sendThe worker choice strategy.
Protected
setupProtected
worker
Maximum number of threads that can be created by this pool.