X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=d59d57f04cb70060cd3036d8b22d6c360b833d3b;hb=800480935c90f3847c389dd5dbfca11760e78675;hp=11fc7b52db0d6a66017db61312360dd87a9f1d1d;hpb=f8350486e75b15ed17249cda3d0a55ee807a6a9f;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 11fc7b52..73546779 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,34 +1,37 @@ -MessageValue | poolifier
+MessageValue | poolifier - v3.0.1
-
+
  • The search index is not available
  • poolifier - v3.0.1 +
    -

    Interface MessageValue<Data, MainWorker>Internal

    +

    Interface MessageValue<Data, ErrorData>Internal

    Message object that is passed between main worker and worker.

    -
    +
    +

    Type Parameters

    +

    ErrorData = unknown

    +

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

    +
    +

    Hierarchy

    +
  • Defined in src/utility-types.ts:105
  • - +

    Properties

    +
    + +
    checkActive?: boolean
    +

    Whether the worker starts or stops its activity check.

    +
    +
    - +
    data?: Data

    Task input data that will be passed to the worker.

    -
    -
    - -
    error?: string
    -

    Task error.

    -
    -
    - -
    errorData?: unknown
    -

    Task data triggering task error.

    -
    -
    - -
    id?: string
    -

    Message UUID.

    -
    +
  • Defined in src/utility-types.ts:83
  • - -
    kill?: 1 | "SOFT" | "HARD"
    + +
    kill?: true | "success" | "SOFT" | "HARD" | "failure"

    Kill code.

    -
    +
  • Defined in src/utility-types.ts:110
  • - +
    name?: string

    Task name.

    -
    -
    - -
    parent?: MainWorker
    -

    Reference to main worker.

    -
    -
    - -
    runTime?: number
    -

    Runtime.

    -
    -
    - -
    submissionTimestamp?: number
    -

    Submission timestamp.

    -
    -
    - -
    waitTime?: number
    -

    Wait time.

    -
    +
  • Defined in src/utility-types.ts:79
  • +
    + +
    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.

    +
    +
    +
    + +
    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.

    +
    +
    +
  • checkActive
  • +
  • data
  • +
  • kill
  • +
  • name
  • +
  • port
  • +
  • ready
  • +
  • statistics
  • +
  • taskFunction
  • +
  • taskFunctionName
  • +
  • taskFunctionNames
  • +
  • taskFunctionOperation
  • +
  • taskFunctionOperationStatus
  • +
  • taskId
  • +
  • taskPerformance
  • +
  • timestamp
  • +
  • transferList
  • +
  • workerError
  • +
  • workerId
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file