X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=374f5527ef3e3d6eab5659aeaee2676963fe81be;hb=d3a9c958dcc326062e978f22d88747c00522032d;hp=c0615429f56ddb5f797d34ece7aad5394da53956;hpb=49fb18fe8d6e6a35ceabe2bce83b26073871e3b0;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index c0615429..374f5527 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,290 +1,45 @@ -MessageValue | poolifier - v2.7.4
-
- -
-
-
-
- -

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:

+MessageValue | poolifier - v3.1.29

Interface MessageValue<Data, ErrorData>Internal

Message object that is passed between main worker and worker.

+
interface MessageValue<Data, ErrorData> {
    checkActive?: boolean;
    data?: Data;
    kill?: true | "success" | "SOFT" | "HARD" | "failure";
    name?: string;
    port?: MessagePort;
    ready?: boolean;
    statistics?: WorkerStatistics;
    taskFunction?: string;
    taskFunctionName?: string;
    taskFunctionNames?: string[];
    taskFunctionOperation?: "add" | "default" | "remove";
    taskFunctionOperationStatus?: boolean;
    taskId?: string;
    taskPerformance?: TaskPerformance;
    timestamp?: number;
    transferList?: TransferListItem[];
    workerError?: WorkerError<ErrorData>;
    workerId?: number;
}

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 (view full)

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:

  • 'add' - Add a task function.
  • 'remove' - Remove a task function.
  • 'default' - Set a task function as default.
-
-
-
- -
taskFunctionOperationStatus?: boolean
-

Whether the task function operation is successful or not.

-
-
-
- -
taskId?: string
-

Task UUID.

-
-
-
- -
taskPerformance?: TaskPerformance
-

Task performance.

-
-
-
- -
timestamp?: number
-

Timestamp.

-
-
-
- -
transferList?: TransferListItem[]
-

Array of transferable objects.

-
-
-
- -
workerError?: WorkerError<ErrorData>
-

Worker error.

-
-
-
- -
workerId?: number
-

Worker id.

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +
taskFunctionOperationStatus?: boolean

Whether the task function operation is successful or not.

+
taskId?: string

Task UUID.

+
taskPerformance?: TaskPerformance

Task performance.

+
timestamp?: number

Timestamp.

+
transferList?: TransferListItem[]

Array of transferable objects.

+
workerError?: WorkerError<ErrorData>

Worker error.

+
workerId?: number

Worker id.

+

Generated using TypeDoc

\ No newline at end of file