X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Finterfaces%2FMessageValue.html;h=b959063afe8df23067fd08e0fa1517d65ed4eeca;hb=cea16128a949e8f118627f00ccb33b08db281c45;hp=a214542b1a9252d3843fa6331368f907020e0ecf;hpb=d49303bcd1dc86f36030dff08796f869681d4eae;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index a214542b..b959063a 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -14,23 +14,29 @@
-Internal
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:29
+
id?: string
-
+
+Defined in src/pools/worker.ts:46
kill?: 1 | "SOFT" | "HARD"
+Defined in src/utility-types.ts:25
parent?: MainWorker
@@ -82,14 +90,14 @@
+Defined in src/utility-types.ts:40
Time
run Time?: number
+Defined in src/utility-types.ts:33
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