X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FFixedThreadPool.html;h=7e07ccb76eaf0874e457ea19396d95219ed14097;hb=ccb7d1a70cd9bd4eb050160517e5bc48311d014f;hp=afdb1f84df4eb8cd54a27e9d3dfe71cd088f2842;hpb=65ec4e64a4690b019d3ef86c97aa7182b715f539;p=poolifier.git diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index afdb1f84..7e07ccb7 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -44,7 +44,7 @@
+'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
numberReadonly
optsProtected
promiseProtected
workerReadonly
workerProtected
fullPrivate
numberPrivate
numberThe worker.
The received message.
Protected
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.
Optional
data: DataThe task input data for the specified worker function. This can only be serializable data.
+Optional
name: stringThe name of the worker function to execute. If not specified, the default worker function will be executed.
Promise that will be fulfilled when the task is completed.
+Protected
internalProtected
isProtected
registerProtected
sendThe worker which should receive the message.
The message.
The worker choice strategy.
Protected
setupProtected
workerThe listener function to execute when a message is received from a worker.
Pool maximum size.
+