X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=049dedcca26fb3a927dc7f4ff97ca28390fec467;hb=224d008191f52fa20b93e1ba67919569f8d6e315;hp=101da4fb023cc0271323b968c4e0a2a9c960c550;hpb=e82ac13a1f1af55b7668013195a12f9e3e017205;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 101da4fb..049dedcc 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,290 +1,52 @@ -MessageValue | poolifier - v3.0.3
-
- -
-
-
-
- -

Interface MessageValue<Data, ErrorData>Internal

-
-

Message object that is passed between main worker and worker.

-
-
-
-

Type Parameters

-
    -
  • -

    Data = unknown

    -

    Type of data sent to the worker or execution response. This can only be structured-cloneable data.

    -
    -
  • -
  • -

    ErrorData = unknown

    -

    Type of data sent to the worker triggering an error. This can only be structured-cloneable data.

    -
    -
-
-

Hierarchy

-
    -
  • Task<Data> -
      -
    • MessageValue
-
-
-
- -
-
-

Properties

-
- -
checkActive?: boolean
-

Whether the worker starts or stops its activity check.

-
-
-
- -
data?: Data
-

Task input data that will be passed to the worker.

-
-
-
- -
kill?: true | "success" | "SOFT" | "HARD" | "failure"
-

Kill code.

-
-
-
- -
name?: string
-

Task name.

-
-
-
- -
port?: MessagePort
-

Message port.

-
-
-
- -
ready?: boolean
-

Whether the worker is ready or not.

-
-
-
- -
statistics?: WorkerStatistics
-

Whether the worker computes the given statistics or not.

-
-
-
- -
taskFunction?: string
-

Task function serialized to string.

-
-
-
- -
taskFunctionName?: string
-

Task function name.

-
-
-
- -
taskFunctionNames?: string[]
-

Task function names.

-
-
-
- -
taskFunctionOperation?: "add" | "default" | "remove"
-

Task function operation:

-
taskFunctionOperationStatus?: boolean

Whether the task function operation is successful or not.

+
taskFunctionProperties?: TaskFunctionProperties

Task function properties.

+
taskFunctionsProperties?: TaskFunctionProperties[]

Task functions properties.

+
taskId?: `${string}-${string}-${string}-${string}-${string}`

Task UUID.

+
taskPerformance?: TaskPerformance

Task performance.

+
timestamp?: number

Timestamp.

+
transferList?: readonly TransferListItem[]

Array of transferable objects.

+
workerError?: WorkerError<ErrorData>

Worker error.

+
workerId?: number

Worker id.

+
\ No newline at end of file