X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=b42139ab6841b14df4ae6df575cf5a668706a378;hb=36df5bd40369d98d6ccb60400e66dce1aa980d54;hp=ba77a3c678a11c07c438bc7a36b60edaf4454574;hpb=8d20e449d72975f6add9177d1097d5a204d14f71;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index ba77a3c6..b42139ab 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.
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.
@@ -47,44 +47,37 @@
data?
-error?
-error Data?
+check Active?
+data?
id?
kill?
name?
-parent?
-run Time?
-submission Timestamp?
-wait Time?
+ready?
+statistics?
+task Error?
+task Performance?
+timestamp?
+worker Id
+check Active?: boolean
+
+
-
data?: Data
-
-error?: string
-
-
-
-error Data?: unknown
-
-
+- Defined in src/utility-types.ts:77
id?: string
@@ -93,15 +86,15 @@
+- Defined in src/utility-types.ts:85
kill?: 1 | "SOFT" | "HARD"
+kill?: true | "SOFT" | "HARD"
+- Defined in src/utility-types.ts:100
name?: string
@@ -110,40 +103,57 @@
-
-parent?: MainWorker
-- Defined in src/utility-types.ts:73
+
+ready?: boolean
+
+
+
+statistics?: WorkerStatistics
+
+
+
+task Error?: TaskError<ErrorData>
+
-
-run Time?: number
-- Defined in src/utility-types.ts:104
+
+task Performance?: TaskPerformance
+
-
-submission Timestamp?: number
-- Defined in src/utility-types.ts:108
+
+timestamp?: number
+
-
-wait Time?: number
-- Defined in src/utility-types.ts:81
+
+worker Id: number
+
+- Defined in src/utility-types.ts:69
@@ -163,18 +173,19 @@
+- ready
+- statistics
+- task
Error
+- task
Performance
+- timestamp
+- worker
Id
-
+- Worker
Types
+- available
Parallelism
Properties
-Properties
+ Active
+Optional
Readonly
checkWhether the worker starts or stops its activity check.
+
+Optional
Readonly
dataOptional
Readonly
dataTask input data that will be passed to the worker.
-Optional
Readonly
errorTask error.
- Data
-Optional
Readonly
errorTask data triggering task error.
-Optional
Readonly
id
-Optional
Readonly
killKill code.
Optional
Readonly
name
-Optional
Readonly
parentReference to main worker.
+
+Optional
Readonly
readyWhether the worker is ready or not.
+
+Optional
Readonly
statisticsWhether the worker computes the given statistics or not.
+ Error
+Optional
Readonly
taskTask error.
Time
-Optional
Readonly
runRuntime.
+ Performance
+Optional
Readonly
taskTask performance.
Timestamp
-Optional
Readonly
submissionSubmission timestamp.
+
+Optional
Readonly
timestampTimestamp.
Time
-Optional
Readonly
waitWait time.
+ Id
+Readonly
workerWorker id.
On This Page
+- check
Active
- data
-- error
-- error
Data
- id
- kill
- name
-- parent
-- run
Time
-- submission
Timestamp
-- wait
Time
Generated using TypeDoc