X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=0bff1fea2c9116f75a456473e502ee05fb96170b;hb=296cba79ddbf15e2fd8510a4ba1ef0079ef77ee1;hp=71c0015fed848d4f0855ec42e200be72e7a953e3;hpb=a15339d10554e3130fa1d8957163cb29a8eb2c41;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 71c0015f..0bff1fea 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
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
gethttps://nodejs.org/api/errors.html#class-error If the task function is not found.
Protected
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
run
Runs the given function asynchronously.
+Runs the given task function asynchronously.
Parameters
@@ -545,7 +545,7 @@ never be called.Returns void
+run In Async Scope
@@ -606,7 +606,7 @@ then restore the original execution context.- run
Sync(fn, task): void
-
-
- Defined in src/worker/abstract-worker.ts:388
To Main Worker
+- Defined in src/worker/abstract-worker.ts:353
+- Defined in src/worker/abstract-worker.ts:243
Check Alive
+- Defined in src/worker/abstract-worker.ts:308
Check Alive
+- Defined in src/worker/abstract-worker.ts:320
+- Defined in src/worker/abstract-worker.ts:301
Runs the given function synchronously.
+Runs the given task function synchronously.
Parameters
@@ -624,7 +624,7 @@ then restore the original execution context.Returns void
+Protected
Abstract
send@@ -643,7 +643,7 @@ then restore the original execution context.
Returns void
set Default Task Function
@@ -669,7 +669,7 @@ then restore the original execution context.
Throws
https://nodejs.org/api/errors.html#class-error If the
name
parameter is a non-existing task function.Private
start@@ -680,7 +680,7 @@ then restore the original execution context.
Returns void
Private
stop@@ -691,7 +691,7 @@ then restore the original execution context.
Returns void
trigger Async Id
@@ -713,7 +713,7 @@ then restore the original execution context.
Returns void
Static
bind@@ -806,7 +806,7 @@ then restore the original execution context.- worker
Ready
- bind