X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FDynamicClusterPool.html;h=d47f58e7353d058bb0a691b3bb82506535da14c9;hb=42c1da2ebcb24bed03bbce17c0e32c8c09f9f7e8;hp=eb83929c53eaaa756628630e017ee318324fde47;hpb=ed1ecf09c599769ed61771ec25d71c39c19ba70b;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index eb83929c..d47f58e7 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,11 +1,13 @@
This cluster pool creates new workers when the others are busy, up to the maximum number of workers.
When the maximum number of workers is reached, an event is emitted. If you want to listen to this event, use the pool's emitter
.
of data sent to the worker. This can only be serializable data.
- -of response of execution. This can only be serializable data.
-2.0.0
@@ -30,9 +28,13 @@ When the maximum number of workers is reached, an event is emitted. If you wantType of response of execution. This can only be serializable data.
+Constructs a new poolifier dynamic cluster pool.
Path to an implementation of a ClusterWorker
file, which can be relative or absolute.
Optional
opts: ClusterPoolOptions = {}Options for this dynamic cluster pool.
Optional
Readonly
emitterReadonly
fileReadonly
maxProtected
Readonly
maxProtected
nextReadonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workersReadonly
workersProtected
afterProtected
beforeProtected
chooseProtected
createProtected
createProtected
internalProtected
internalProtected
isProtected
removeWorker that will be removed.
+The worker that will be removed.
Protected
sendProtected
setupProtected
worker
Type of data sent to the worker. This can only be serializable data.
+