X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=8f5cbc5f16d59f0ff44a15c63a171a84d7f64f94;hb=5c30b9d94384214b24f11ea7e68a54efaa6795b7;hp=22b41b087efd60e7a76e3644a9a0d0e0e9b75e39;hpb=6d59ea2c71b8a88d41498c6fb54dfad95fd3a3ac;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 22b41b08..8f5cbc5f 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,4 +1,4 @@ -
Internal
Internal
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
@@ -52,27 +47,38 @@
data?
+check Active?
+data?
id?
kill?
name?
-parent?
+port?
+ready?
statistics?
task Error?
task Performance?
timestamp?
+worker Id
+check Active?: boolean
+
+
-data?: MessageData
+data?: Data
+- Defined in src/utility-types.ts:78
id?: string
@@ -81,15 +87,15 @@
+- Defined in src/utility-types.ts:86
kill?: 1 | "SOFT" | "HARD"
+kill?: true | "SOFT" | "HARD"
+- Defined in src/utility-types.ts:101
name?: string
@@ -98,31 +104,39 @@
-
-parent?: MainWorker
-- Defined in src/utility-types.ts:74
+
+port?: MessagePort
+
+- Defined in src/utility-types.ts:125
+
+ready?: boolean
+
+
statistics?: WorkerStatistics
-
+- Defined in src/utility-types.ts:113
task Error?: TaskError<Data>
+task Error?: TaskError<ErrorData>
+- Defined in src/utility-types.ts:105
Performance
task Performance?: TaskPerformance
@@ -130,7 +144,7 @@
+- Defined in src/utility-types.ts:109
timestamp?: number
@@ -139,7 +153,16 @@
+- Defined in src/utility-types.ts:82
+
+worker Id: number
+
+
@@ -159,17 +182,20 @@
+- timestamp
+- worker
Id
-
Properties
-Properties
+ Active
+Optional
Readonly
checkWhether the worker starts or stops its activity check.
+
-Optional
Readonly
data
+Optional
Readonly
dataTask input data that will be passed to the worker.
Optional
Readonly
id
-Optional
Readonly
killKill code.
Optional
Readonly
name
-Optional
Readonly
parentReference to main worker.
+
+Optional
Readonly
portMessage port.
+Optional
Readonly
readyWhether the worker is ready or not.
+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 Id
+Readonly
workerWorker id.
+On This Page
+- check
Active
- data
- id
- kill
- name
-- parent
+- port
+- ready
- statistics
- task
Error
- task
Performance
-- timestamp
Generated using TypeDoc