X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=739ae0839c86e0c4aa71ce31eae4081d1d280fae;hb=7e36fa9f0f844e3e60f0c22de3e28665dd8cc9d1;hp=ccf490a367b5aa9d38c0732fb409033967068255;hpb=842d8918a19fc2720d4436789a2e373bc623452e;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index ccf490a3..739ae083 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -16,21 +16,27 @@
Message object that is passed between worker and main worker.
+Message object that is passed between main worker and worker.
Type Parameters
Data = unknown
Data = unknown
+Type of data sent to the worker. This can only be serializable data.
+MainWorker extends ClusterWorker | MessagePort | unknown = unknown
MainWorker extends ClusterWorker | MessagePort | unknown = unknown
+Type of main worker.
+Hierarchy
-- MessageValue
@@ -38,43 +44,45 @@
data?
+data?
error?
-id?
+id?
kill?
parent?
run Time?
+
data?: Data
+
+Defined in src/pools/worker.ts:42
error?: string
-
+Defined in src/utility-types.ts:28
+
id?: string
-
+
+Defined in src/pools/worker.ts:46
kill?: 1 | "SOFT" | "HARD"
+Defined in src/utility-types.ts:24
parent?: MainWorker
@@ -82,14 +90,14 @@
+Defined in src/utility-types.ts:39
Time
run Time?: number
+Defined in src/utility-types.ts:32
Properties
-Properties
-Optional
Readonly
dataInput data that will be passed to the worker.
Inherited from Task.data
-- Defined in src/utility-types.ts:21
Optional
Readonly
errorError.
-- Defined in src/utility-types.ts:33
Optional
Readonly
idId of the message.
+UUID of the message.
Inherited from Task.id
-- Defined in src/utility-types.ts:25
Optional
Readonly
killKill code.
-- Defined in src/utility-types.ts:29
Optional
Readonly
Internal
parentOnly for internal use.
-- Defined in src/utility-types.ts:44
Optional
Readonly
runRuntime.
-- Defined in src/utility-types.ts:37
On This Page
-- data
+- data
- error
-- id
+- id
- kill
- parent
- run
Time