X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=597f0599a8fc4fae1c16ea37feed4727024bb63a;hb=2de80350c43436f87fca7de401d213c0d93fe208;hp=9dcdc7c1b2e8addebd692d80869ff1fe787e54ae;hpb=c4d8442aed5e5a9d6cde9f3bfd721be3033c1eef;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 9dcdc7c1..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