X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=ad386bb28f44c83eca68c16f11620eaf49f95011;hb=76b46937556ea55049d5c413aa0a77d0c7f47f48;hp=2fe528e337366b26aeb513f8e8db91df4d8e80f0;hpb=7b88db4b8420d92d98e93c04492319ea814d0fc5;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 2fe528e3..ad386bb2 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
Task function(s) processed by the worker when the pool's execution
function is invoked. The first function is the default function.
Reference to main worker.
Reference to main worker.
+Task function(s) processed by the worker when the pool's execution
function is invoked. The first function is the default function.
Protected
Abstract
idProtected
Readonly
isProtected
lastProtected
Readonly
mainPrivate
Readonly
mainReference to main worker.
Protected
Readonly
optsProtected
statisticsProtected
taskhttps://nodejs.org/api/errors.html#class-typeerror If the fn
parameter is not a function.
Private
beginOptional
name: stringPrivate
checkPrivate
checkPrivate
checkPrivate
checkPrivate
endProtected
getPrivate
gethttps://nodejs.org/api/errors.html#class-error If the task function is not found.
Protected
handleProtected
handleHandles a kill message sent by the main worker.
+The kill message.
+Protected
Abstract
handleHandles the ready message sent by the main worker.
+The ready message.
+https://nodejs.org/api/errors.html#class-typeerror If the name
parameter is not a string.
Protected
messageThe received message.
https://nodejs.org/api/errors.html#class-error If the name
parameter is the task function used as default task function.
Protected
runhttps://nodejs.org/api/errors.html#class-error If the task function is not found.
Protected
runProtected
runProtected
sendProtected
Abstract
sendSets the default task function to use when no task function name is specified.
+Sets the default task function to use in the worker.
https://nodejs.org/api/errors.html#class-error If the name
parameter is a non-existing task function.
Private
startPrivate
stopPrivate
updateStatic
bind
Constructs a new poolifier worker.