X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FAbstractWorker.html;h=71c0015fed848d4f0855ec42e200be72e7a953e3;hb=ef9f489c870680b9a754ab8e5b142b3f042a9ebb;hp=869e9ee7f7bfc2908345915583ee5135735daf59;hpb=3557031d88b5ff00ea86695728b3ba3af46e9faa;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 869e9ee7..71c0015f 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -47,7 +47,7 @@
Protected
Abstract
idProtected
Readonly
isProtected
lastProtected
Readonly
mainProtected
Readonly
optsProtected
statisticsProtected
taskhttps://nodejs.org/api/errors.html#class-typeerror If the fn
parameter is not a function.
Optional
name: stringPrivate
checkPrivate
checkPrivate
checkProtected
getPrivate
getProtected
messagehttps://nodejs.org/api/errors.html#class-error If the name
parameter is the task function used as default task function.
Protected
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.
Function that will be executed.
+Task function that will be executed.
Protected
runRuns the given function synchronously.
Function that will be executed.
+Task function that will be executed.
Protected
Abstract
sendhttps://nodejs.org/api/errors.html#class-error If the name
parameter is a non-existing task function.
Private
startPrivate
stopStatic
bind
Gets the task function in the given scope.
+Gets the task function with the given name.
Parameters
@@ -406,10 +407,13 @@ never be called.Name of the task function that will be returned.
Returns WorkerFunction<Data, Response>
-Protected
handle@@ -429,7 +433,7 @@ never be called.
-- Defined in src/worker/abstract-worker.ts:362
has Task Function
@@ -451,7 +455,7 @@ never be called.
Throws
https://nodejs.org/api/errors.html#class-typeerror If the
name
parameter is not a string.