X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=c544fca00d13c053a2729753e25234b188106419;hb=a6b5c73ccccb3ef0ccc24ad462182e3cacee77b4;hp=5cc8e0aecda9b7b5ed585700580039d62423dbdd;hpb=f45a3823ad04902b4c446c7c7de55ca183041953;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 5cc8e0ae..c544fca0 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
Protected
lastProtected
mainProtected
Readonly
mainReference to main worker.
Protected
Readonly
optsProtected
statisticsPerformance statistics computation.
+ +Performance statistics computation requirements.
Protected
taskPrivate
beginInherited from AsyncResource.bind
Protected
checkPrivate
checkChecks if the worker should be terminated, because its living too long.
@@ -260,7 +267,15 @@Private
checkPrivate
checkPrivate
checkInherited from AsyncResource.emitDestroy
Private
endProtected
getPrivate
getProtected
handleThe error raised by the worker.
Message of the error.
+The error message.
Protected
messageMessage received.
Protected
runInput data for the given function.
Inherited from AsyncResource.runInAsyncScope
Protected
runInput data for the given function.
Protected
Abstract
sendThe response message.
Private
startStarts the worker alive check interval.
+Private
stopStops the worker alive check interval.
+Inherited from AsyncResource.triggerAsyncId
Static
bindInherited from AsyncResource.bind
Generated using TypeDoc
Type of data this worker receives from pool's execution. This can only be serializable data.
+Type of data this worker receives from pool's execution. This can only be structured-cloneable data.
Response = unknown
-Type of response the worker sends back to the main worker. This can only be serializable data.
+Type of response the worker sends back to the main worker. This can only be structured-cloneable data.
@@ -60,6 +60,7 @@
alive Interval?
+id
is Main
last Task Timestamp
main Worker
@@ -72,7 +73,8 @@
async Id
begin Task Performance
bind
-check Alive
+check Alive
+check Statistics
check Task Functions
check Worker Options
emit Destroy
@@ -85,6 +87,8 @@
run In Async Scope
run Sync
send To Main Worker
+start Check Alive
+stop Check Alive
trigger Async Id
bind
Properties
mainWorker: undefined | null | MainWorker
+mainWorker: MainWorker
Reference to main worker.
Properties
Interval
+Protected
Optional
Readonly
aliveProtected
Optional
aliveHandler id of the
aliveInterval
worker alive check.
+Protected
Abstract
idWorker id.
+Protected
Readonly
is