X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicThreadPool.html;h=62d4967497f54546e914007767913f7abfc1ca0c;hb=b881e803f1a32ce8d8218d3ba3638ad317ae87bc;hp=67c7c467706788beed168af6e6b9b564689368dc;hpb=030eb5a38e62c6e381961644eab2ddac9a027aea;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 67c7c467..62d49674 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,4 +1,4 @@ -
Protected
Readonly
numberProtected
Readonly
optsProtected
promiseProtected
workerReadonly
workerPool worker nodes.
Protected
fullProtected
maxProtected
minPrivate
readyProtected
typePrivate
utilizationGets the approximate pool utilization.
+The pool utilization.
+ +Protected
workerProtected
afterProtected
beforeProtected
checkProtected
createProtected
createProtected
createTerminate every current worker in this pool.
+Terminates every current worker in this pool.
Protected
destroyProtected
getGets the worker information from the given worker.
+The worker.
+The worker information.
+ +https://nodejs.org/api/errors.html#class-error If the worker is not found.
+Protected
getProtected
internalProtected
isProtected
registerRegisters a listener callback on the given worker.
+The worker which should register a listener.
+The message listener callback.
+Protected
sendProtected
sendProtected
setupProtected
workerGenerated using TypeDoc
Emitter on which events can be listened to.
Events that can currently be listened to:
-
-
+
+
+
@@ -158,7 +166,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.'full'
: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.'ready'
: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.'busy'
: Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Protected
Readonly
fileProtected
Readonly
max