Interface Task<Data>Internal

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

interface Task<Data> {
    data?: Data;
    name?: string;
    taskId?: string;
    timestamp?: number;
    transferList?: TransferListItem[];
}

Type Parameters

  • Data = unknown

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

Hierarchy (view full)

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.

Generated using TypeDoc