X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FAbstractWorker.html;h=3bf8ee31f0a74b6b905db29eb2187b4e4a6fae70;hb=637100d9f7507bb89a42120c7dec2f0db688b1a5;hp=a343b9557dc4c76eabf338f0ae69fb5094ef78e2;hpb=79f98bd9040049eec047b50d2cbd0878fdc9e6f1;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index a343b955..3bf8ee31 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
taskTask function(s) processed by the worker when the pool's execution
function is invoked.
The task function to add.
https://nodejs.org/api/errors.html#class-typeerror If the fn
parameter is not a function.
Private
beginOptional
name: stringPrivate
checkPrivate
checkPrivate
checkThe task function(s) parameter that should be checked.
Private
checkPrivate
endProtected
getPrivate
getGets the task function with the given name.
Name of the task function that will be returned.
The task function.
+The task function.
https://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
runTask function that will be executed.
Protected
runTask function that will be executed.
Protected
sendProtected
Abstract
sendSends a message to the main worker.
+Sends a message to main worker.
Sets 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.