X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=9b0b8e4d7dbfcb9dd96347e5fcbcafdf9b9d2818;hb=c7e01b67847217903200f2453a4ffd4ba6bb191a;hp=48c9fffa9099a75acb763e38b6dfa89918273255;hpb=3e406edee2c758263a2e8d8bbbaaeff951a3db7a;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 48c9fffa..9b0b8e4d 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
Protected
Optional
aliveHandler id of the aliveInterval
worker alive check.
Protected
Optional
activeHandler id of the activeInterval
worker activity check.
Protected
Readonly
isProtected
lastProtected
Readonly
mainReference to main worker.
-Protected
Readonly
optsPrivate
portMessage port used to communicate with the main worker.
+Protected
statisticsProtected
taskTask function(s) processed by the worker when the pool's execution
function is invoked.
The task function to add.
Protected
getProtected
handleProtected
handleHandles a kill message sent by the main worker.
+The kill message.
+Protected
handleHandles the ready message sent by the main worker.
+The ready message.
+Protected
messageProtected
runRuns the given task.
+The task to execute.
+https://nodejs.org/api/errors.html#class-error If the task function is not found.
+Protected
runRuns the given function asynchronously.
+Runs the given task function asynchronously.
Function that will be executed.
+Task function that will be executed.
Protected
runRuns the given function synchronously.
+Runs the given task function synchronously.
Function that will be executed.
+Task function that will be executed.
Protected
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.
Protected
workerStatic
bind
Task function(s) processed by the worker when the pool's
execution
function is invoked.