Defines a task queue item

interface TaskQueueItem {
    id: number;
    order: number;
    callback: (args?: any) => void;
    once: boolean;
}

Properties

Properties

id: number

Unique id of the task queue item

order: number

Priority order in the tasks queue array

callback: (args?: any) => void

Callback to execute

once: boolean

Whether to execute the task only once and them automatically remove it from the tasks queue array