X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicThreadPool.html;h=6df05d2fc9b36f7f86332c692681a6e5490b180c;hb=f44936aebf12fc2aa4f507680e84171367185788;hp=fa708b4b42d12141a962733b982f30918d2e3620;hpb=fec1c97860619dd6356803fee392205474010d5b;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index fa708b4b..6df05d2f 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,11 +1,13 @@
This thread pool creates new threads when the others are busy, up to the maximum number of threads.
When the maximum number of threads 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.
-0.0.1
@@ -30,9 +28,13 @@ When the maximum number of threads is reached, an event is emitted. If you wantType of response of execution. This can only be serializable data.
+Constructs a new poolifier dynamic thread pool.
Path to an implementation of a ThreadWorker
file, which can be relative or absolute.
Optional
opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}Options for this dynamic thread pool.
Optional
Readonly
emitterReadonly
fileReadonly
maxProtected
Readonly
maxProtected
nextReadonly
numberReadonly
optsProtected
promiseProtected
workerReadonly
workersReadonly
workersProtected
afterProtected
beforeProtected
chooseProtected
createProtected
createInitializes tasks usage statistics.
-The worker.
-Protected
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.
+