X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FAbstractWorker.html;h=b54b7dbd2e34a5bf41cf266f24ce580de3ed7ccb;hb=a13e50c30dd0e0714ace0e1ea4ea1b36cdd18ab7;hp=ad386bb28f44c83eca68c16f11620eaf49f95011;hpb=b881e803f1a32ce8d8218d3ba3638ad317ae87bc;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index ad386bb2..b54b7dbd 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
Protected
Abstract
idProtected
Readonly
isProtected
lastPrivate
Readonly
mainProtected
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
handleProtected
Abstract
handlehttps://nodejs.org/api/errors.html#class-typeerror If the name
parameter is not a string.
Protected
messagehttps://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.
https://nodejs.org/api/errors.html#class-error If the name
parameter is a non-existing task function.
Private
startPrivate
stopPrivate
updateStatic
bind
Task function(s) processed by the worker when the pool's
execution
function is invoked. The first function is the default function.