X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=6dce4e385d79cd8e46ac60f4d26db1fc08867e6c;hb=6d6c7ed0c2c3c83cefae4d8cd5bc9393126bba70;hp=d9b845fa1c5f5ed6af55eaf12feb42efe29f28a2;hpb=aac8863d208eadcb0ecb33dc44d045c26f5a444f;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index d9b845fa..6dce4e38 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -14,7 +14,7 @@
-Internal
Internal
Generated using TypeDoc
Message object that is passed between main worker and worker.
Type Parameters
MessageData = unknown
-Type of data sent to and/or from the worker. This can only be serializable data.
-Data = unknown
-Type of data sent to the worker. This can only be serializable data.
+Type of data sent to the worker or execution response. This can only be structured-cloneable data.
MainWorker extends ClusterWorker | MessagePort = ClusterWorker | MessagePort
-Type of main worker.
+ErrorData = unknown
+Type of data sent to the worker triggering an error. This can only be structured-cloneable data.
Hierarchy
-- Task<MessageData>
+
- Task<Data>
- MessageValue
@@ -56,7 +51,6 @@ id? kill? name? -parent? statistics? task Error?
task Performance?
@@ -66,13 +60,13 @@
data?: MessageData
+data?: Data
+- Defined in src/pools/worker.ts:47
Properties
-Optional
Readonly
dataTask input data that will be passed to the worker.
Optional
Readonly
idOptional
Readonly
killOptional
Readonly
name
-Optional
Readonly
parentReference to main worker.
-Optional
Readonly
statisticsWhether to compute the given statistics or not.
+Whether the worker computes the given statistics or not.
Error
-Optional
Readonly
taskTask error.
Optional
Readonly
taskOptional
Readonly
timestamp