Interface Task<Data>Internal

Message object that is passed as a task between main worker and worker.

Type Parameters

  • Data = unknown

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

Hierarchy

Properties

data?: Data

Task input data that will be passed to the worker.

name?: string

Task name.

taskId?: string

Task UUID.

timestamp?: number

Timestamp.

transferList?: TransferListItem[]

Array of transferable objects.

workerId?: number

Worker id.

Generated using TypeDoc