X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=497a22fdf5d3548c9cefa9609e8fd7c2cb90e764;hb=7258488054d6b806c3e7571c68533c0d64e120d8;hp=8bd849c4999ff15f4e0afe4dd66ad733c421cf4c;hpb=bf4dcb92f8d370524a2975961731fe6c4e8b083c;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 8bd849c4..497a22fd 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -43,7 +43,7 @@
Whether this is the main worker or not.
Function processed by the worker when the pool's execution
function is invoked.
Task function(s) processed by the worker when the pool's execution
function is invoked. The first function is the default function.
Handler id of the aliveInterval
worker alive check.
Protected
Readonly
isWhether this is the main worker or not.
Protected
lastTimestamp of the last task processed by this worker.
Protected
mainReference to main worker.
Protected
Readonly
optsOptions for the worker.
Protected
taskTask function(s) processed by the worker when the pool's execution
function is invoked.
Binds the given function to execute to this AsyncResource
's scope.
The returned function will have an asyncResource
property referencing
-the AsyncResource
to which the function is bound.
v14.8.0, v12.19.0
AsyncResource
to which the function is bound.
The function to bind to the current AsyncResource
.
Protected
checkAsyncResource
to which the function is bound.
Private
checkPrivate
checkChecks if the fn
parameter is passed to the constructor.
Checks if the taskFunctions
parameter is passed to the constructor.
The function that should be defined.
+The task function(s) parameter that should be checked.
Private
checkAsyncResource
to which the function is bound.
Inherited from AsyncResource.emitDestroy
Protected
getReference to the main worker.
Private
getGets the task function in the given scope.
+Optional
name: stringName of the function that will be returned.
+Protected
handleMessage of the error.
Protected
messageWorker message listener.
Message received.
-Function processed by the worker when the pool's execution
function is invoked.
Protected
runRuns the given function synchronously.
-Function that will be executed.
-Input data for the given function.
-Protected
runFunction that will be executed.
Input data for the given function.
Inherited from AsyncResource.runInAsyncScope
Protected
runRuns the given function synchronously.
+Function that will be executed.
+Input data for the given function.
+Protected
Abstract
sendThe response message.
Inherited from AsyncResource.triggerAsyncId
Static
bindBinds the given function to the current execution context.
-The returned function will have an asyncResource
property referencing
-the AsyncResource
to which the function is bound.
v14.8.0, v12.19.0
AsyncResource
to which the function is bound.
Optional
thisArg: ThisArgInherited from AsyncResource.bind
Constructs a new poolifier worker.