X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=f0d3690a0030287ac4958dc393ed7438ec4ef19d;hb=c97a785f1274883c88a77d2bf418ba6480d20d04;hp=b623323ab33337b22b76f66ca989daad08572222;hpb=5e5a659e2b415c7d533dad095eda082989983f8e;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index b623323a..f0d3690a 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,44 +47,46 @@
data?
-id?
+check Active?
+data?
kill?
name?
-parent?
+port?
+ready?
statistics?
task Error?
+task Id?
task Performance?
timestamp?
+worker Id
-data?: MessageData
-
+check Active?: boolean
+
-
-id?: string
-- Defined in src/utility-types.ts:120
+
+data?: Data
+
+- Defined in src/utility-types.ts:77
kill?: 1 | "SOFT" | "HARD"
+kill?: true | "SOFT" | "HARD"
+- Defined in src/utility-types.ts:100
name?: string
@@ -98,31 +95,48 @@
-
-parent?: MainWorker
-- Defined in src/utility-types.ts:73
+
+port?: MessagePort
+
+- Defined in src/utility-types.ts:124
+
+ready?: boolean
+
+
statistics?: WorkerStatistics
-
+- Defined in src/utility-types.ts:112
task Error?: TaskError<Data>
+task Error?: TaskError<ErrorData>
+- Defined in src/utility-types.ts:104
+
+task Id?: string
+
+
Performance
task Performance?: TaskPerformance
@@ -130,7 +144,7 @@
+- Defined in src/utility-types.ts:108
timestamp?: number
@@ -139,7 +153,16 @@
+- Defined in src/utility-types.ts:81
+
+worker Id: number
+
+
@@ -159,17 +182,20 @@
+- timestamp
+- worker
Id
-
+- Worker
Types
+- available
Parallelism
Properties
-Properties
-
-Optional
Readonly
dataTask input data that will be passed to the worker.
+ Active
+Optional
Readonly
checkWhether the worker starts or stops its activity check.
-Optional
Readonly
idMessage UUID.
+
+Optional
Readonly
dataTask input data that will be passed to the worker.
-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.
Id
+Optional
Readonly
taskTask UUID.
+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
Id
- task
Performance
-- timestamp
Generated using TypeDoc