Options for a task in a TaskQueue.

interface TaskOptions {
    priority?: number;
    signal?: AbortSignal;
}

Hierarchy

Properties

Properties

priority?: number

Priority of operation. Operations with greater priority will be scheduled first. Defaults to 0.

signal?: AbortSignal

An optional AbortSignal that can be used to abort an async task.

Generated using TypeDoc