X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FThreadWorker.html;h=d65633c072faa517ffa82a3571c3c33141499547;hb=658b9aa08266ed9a8ae3c0fc947d237fa2674f09;hp=559ebafcb197906d8ff29dcba82942f38e2fadb5;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 559ebafc..d65633c0 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
Input data for the given function.
Protected
runInput data for the given function.
Protected
sendThe response message.
Static
bindGenerated 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 thread. This can only be serializable data.
+Type of response the worker sends back to the main thread. This can only be structured-cloneable data.
@@ -68,13 +68,17 @@ but the minimum number of workers will be guaranteed. task Functions
Accessors
+Methods
Properties
Interval
+Protected
Optional
Readonly
aliveProtected
Optional
aliveHandler id of the
aliveInterval
worker alive check.Protected
Readonly
isProtected
last Worker
-Protected
main Worker
+Protected
Readonly
mainReference to main worker.
Protected
Readonly
opts
-Protected
statisticsPerformance statistics computation.
+Performance statistics computation requirements.
Protected
taskAccessors
+
+Protected
id+- get id(): number
+-
+
+
Worker id.
+Returns number
+Methods
bind
@@ -221,7 +239,7 @@ but the minimum number of workers will be guaranteed.
Protected
check@@ -233,7 +251,7 @@ but the minimum number of workers will be guaranteed.
emit Destroy
@@ -249,7 +267,7 @@ never be called.
Protected
get@@ -262,10 +280,10 @@ never be called.
Error
-Protected
handle+- handle
Error(e): string
-
-
Handles an error and convert it to a string so it can be sent back to the main worker.
@@ -278,12 +296,12 @@ never be called.The error raised by the worker.
Returns string
Message of the error.
+Returns string
The error message.
Protected
message@@ -295,7 +313,7 @@ never be called.-
-
Parameters
message: MessageValue<Data, MessagePort>
+message: MessageValue<Data, Data>
Message received.
Protected
run@@ -320,7 +338,7 @@ never be called.