X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=fa708b4b42d12141a962733b982f30918d2e3620;hb=e83f3916315e18f3ca0c614d6ec9e064ab76c13c;hp=72bfbbc053aca922843fc27487f301fadf8154a6;hpb=fe9f25b5ac98c7c7fccd1849a200c5054a77cf03;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 72bfbbc0..fa708b4b 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -40,7 +40,7 @@ When the maximum number of threads is reached, an event is emitted. If you want
Readonly
fileReadonly
maxProtected
nextReadonly
numberReadonly
optsProtected
promiseReadonly
tasksProtected
workerReadonly
workersReadonly
workersProtected
afterHook executed after the worker task promise resolution. +Can be overridden.
+The received message.
+The Promise response.
+Protected
afterProtected
beforeHook executed before the worker task promise resolution. +Can be overridden.
+The worker.
+Protected
chooseChoose a worker for the next task.
+Chooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
Worker.
@@ -280,7 +324,7 @@ When the maximum number of threads is reached, an event is emitted. If you wantProtected
createProtected
createProtected
decreaseDecrease the number of tasks that the given worker has applied.
-Worker whose tasks are decreased.
-Protected
increaseIncrease the number of tasks that the given worker has applied.
+Initializes tasks usage statistics.
Worker whose tasks are increased.
+The worker.
Protected
internalProtected
internalProtected
isProtected
removeProtected
sendProtected
setupProtected
worker
Inherit Doc