X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FThreadWorker.html;h=d65633c072faa517ffa82a3571c3c33141499547;hb=3abeb14de6a5845deeb027ccc69c3feeec8f4a3a;hp=dae2a4a7522e22f27deb657684b4ce28da4de7a7;hpb=15d6dfaf877ec6a99e2bde48cb3c8a9e8671c075;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index dae2a4a7..d65633c0 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
Protected
runInput 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.
@@ -64,16 +64,21 @@ but the minimum number of workers will be guaranteed. last Task Timestamp
main Worker
opts
+statistics
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 requirements.
+Protected
taskAccessors
+
+Protected
id+- get id(): number
+-
+
+
Worker id.
+Returns number
+Methods
bind
@@ -211,7 +239,7 @@ but the minimum number of workers will be guaranteed.
Protected
check@@ -223,7 +251,7 @@ but the minimum number of workers will be guaranteed.
emit Destroy
@@ -239,7 +267,7 @@ never be called.
Protected
get@@ -252,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.
@@ -268,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@@ -285,7 +313,7 @@ never be called.-
-
Parameters
message: MessageValue<Data, MessagePort>
+message: MessageValue<Data, Data>
Message received.