Interface MessageValue<Data, MainWorker>Internal

Message object that is passed between main worker and worker.

Type Parameters

  • Data = unknown

    Type of data sent to the worker. This can only be serializable data.

  • MainWorker extends ClusterWorker | MessagePort = ClusterWorker | MessagePort

    Type of main worker.

Hierarchy

  • Task<Data>
    • MessageValue

Properties

data?: Data

Task input data that will be passed to the worker.

error?: string

Error.

id?: string

Message UUID.

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

Kill code.

name?: string

Task name.

parent?: MainWorker

Reference to main worker.

runTime?: number

Runtime.

Generated using TypeDoc