X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=597f0599a8fc4fae1c16ea37feed4727024bb63a;hb=2de80350c43436f87fca7de401d213c0d93fe208;hp=a8ff7c7861339aa618b06a481c377bce7877b20d;hpb=6ddc8fc5fa990a91503f816001d216a002a3ddae;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index a8ff7c78..597f0599 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
Protected
Abstract
idProtected
Readonly
isProtected
lastPrivate
Readonly
mainProtected
optsProtected
statisticsProtected
taskhttps://nodejs.org/api/errors.html#class-typeerror If the fn
parameter is not a function.
Private
beginOptional
name: stringPrivate
checkPrivate
checkhttps://nodejs.org/api/errors.html#class-error If the message worker id is not set or does not match the worker id.
Private
checkPrivate
checkPrivate
checkProtected
gethttps://nodejs.org/api/errors.html#class-error If the main worker is not set.
Protected
handleProtected
handleProtected
Abstract
handlehttps://nodejs.org/api/errors.html#class-typeerror If the name
parameter is not a string or an empty 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
runProtected
runProtected
sendProtected
Abstract
sendhttps://nodejs.org/api/errors.html#class-error If the name
parameter is a non-existing task function.
Private
startPrivate
stopPrivate
updateStatic
bind
Checks if the
+taskFunctions
parameter is passed to the constructor.Checks if the
taskFunctions
parameter is passed to the constructor and valid.Parameters
@@ -377,11 +377,11 @@ If a task function with the same name already exists, it is replaced.Returns void
- Valid Task Function
+Private
checkPrivate
check-- check
Valid Task Function(name, fn): void
+- check
Valid Task Function Entry(name, fn): void
-
Parameters
@@ -392,7 +392,7 @@ If a task function with the same name already exists, it is replaced.fn: TaskFunction<Data, Response>
Returns void
Private
check@@ -405,7 +405,7 @@ If a task function with the same name already exists, it is replaced.
opts: WorkerOptions
Returns void
+emit Destroy
@@ -421,7 +421,7 @@ never be called.
Private
end@@ -434,7 +434,7 @@ never be called.
taskPerformance: TaskPerformance