X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=68228365370ac7e68e576fc34f0fcab1d70d0812;hb=bff4b6ed4419b66ebeb64e73c39b0054cf015a70;hp=a2bf8d1a732e2c6d7f3f325aa579ddf40e6fc7d9;hpb=aba8d9bd41f1bd46f3cc3863c0c2e74bdfacb7b6;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index a2bf8d1a..68228365 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -32,12 +32,12 @@ but the minimum number of workers will be guaranteed.
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
Protected
Readonly
isProtected
last Worker
-Protected
main Worker
+Protected
Readonly
mainReference to main worker.
Protected
Readonly
optsProtected
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, Data, MessagePort>
+message: MessageValue<Data, Data>
Message received.
Protected
run@@ -320,7 +338,7 @@ never be called.