X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=d59d57f04cb70060cd3036d8b22d6c360b833d3b;hb=800480935c90f3847c389dd5dbfca11760e78675;hp=3f612975f354af3f49bd21e762b7227701660228;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 3f612975..73546779 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,20 +1,20 @@ -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.

    @@ -24,12 +24,12 @@
    @@ -39,112 +39,155 @@
    +
  • 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.

    -
    - -
    elu?: EventLoopUtilization
    -

    Event loop utilization.

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

    Kill code.

    -
    - -
    error?: string
    -

    Task error.

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

    Task name.

    -
    - -
    errorData?: unknown
    -

    Task data triggering task error.

    +
  • Defined in src/utility-types.ts:79
  • +
    + +
    port?: MessagePort
    +

    Message port.

    -
    - -
    id?: string
    -

    Message UUID.

    +
  • Defined in src/utility-types.ts:157
  • +
    + +
    ready?: boolean
    +

    Whether the worker is ready or not.

    -
    - -
    kill?: 1 | "SOFT" | "HARD"
    -

    Kill code.

    +
  • Defined in src/utility-types.ts:149
  • +
    + +
    statistics?: WorkerStatistics
    +

    Whether the worker computes the given statistics or not.

    -
    - -
    name?: string
    -

    Task name.

    +
  • Defined in src/utility-types.ts:145
  • +
    + +
    taskFunction?: string
    +

    Task function serialized to string.

    -
    - -
    parent?: MainWorker
    -

    Reference to main worker.

    +
  • Defined in src/utility-types.ts:133
  • +
    + +
    taskFunctionName?: string
    +

    Task function name.

    -
    - -
    runTime?: number
    -

    Runtime.

    +
  • Defined in src/utility-types.ts:137
  • +
    + +
    taskFunctionNames?: string[]
    +

    Task function names.

    -
    - -
    statistics?: WorkerStatistics
    -

    Whether to compute the given statistics or not.

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

    +
  • Defined in src/utility-types.ts:95
  • +
    + +
    taskPerformance?: TaskPerformance
    +

    Task performance.

    +
    +
    timestamp?: number
    @@ -153,20 +196,38 @@
    -
    - -
    waitTime?: number
    -

    Wait time.

    +
  • Defined in src/utility-types.ts:91
  • +
    + +
    transferList?: TransferListItem[]
    +

    Array of transferable objects.

    +
    +
    +
    + +
    workerError?: WorkerError<ErrorData>
    +

    Worker error.

    +
    +
    +
    + +
    workerId?: number
    +

    Worker id.

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

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file