X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FMessageValue.html;h=2d134e0ad7d60f7c751bb0a6637ab706e5b67650;hb=cb4889b43e6935f6dd70d8011ba085c9ca7218ba;hp=7f6d59ce82193feacd5b8ed8c942f4cd3a09bfaf;hpb=2f4ae5a6c14efa15bafa4ab0e68f166ec80d719b;p=poolifier.git diff --git a/docs/interfaces/MessageValue.html b/docs/interfaces/MessageValue.html index 7f6d59ce..ca097c8c 100644 --- a/docs/interfaces/MessageValue.html +++ b/docs/interfaces/MessageValue.html @@ -1,171 +1,245 @@ -MessageValue | poolifier
+MessageValue | poolifier - v2.6.41
-
+
  • The search index is not available
  • poolifier - v2.6.41 +
    -

    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

    -
    - -
    data?: Data
    +
    + +
    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
    -

    Error.

    -
    -
    - -
    id?: string
    -

    UUID of the message.

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

    Kill code.

    -
    -
    - -
    parent?: MainWorker
    -

    Reference to main worker.

    -
    -
    - -
    runTime?: number
    -

    Runtime.

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

    +
    +
    +
    + +
    taskError?: TaskError<ErrorData>
    +

    Task error.

    +
    +
    +
    + +
    taskFunctions?: string[]
    +

    Task function names.

    +
    +
    +
    + +
    taskId?: string
    +

    Task UUID.

    +
    +
    +
    + +
    taskPerformance?: TaskPerformance
    +

    Task performance.

    +
    +
    +
    + +
    timestamp?: number
    +

    Timestamp.

    +
    +
    +
    + +
    transferList?: TransferListItem[]
    +

    Array of transferable objects.

    +
    +
    +
    + +
    workerId: number
    +

    Worker id.

    +
    +
    +

    Theme

    -

    On This Page

    +

    On This Page

    +
  • checkActive
  • +
  • data
  • +
  • kill
  • +
  • name
  • +
  • port
  • +
  • ready
  • +
  • statistics
  • +
  • taskError
  • +
  • taskFunctions
  • +
  • taskId
  • +
  • taskPerformance
  • +
  • timestamp
  • +
  • transferList
  • +
  • workerId
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file