Defines a task queue item

interface TaskQueueItem {
    id: number;
    order: number;
    callback: ((args?) => 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?) => void)

Callback to execute

Type declaration

    • (args?): void
    • Callback to execute

      Parameters

      • Optional args: any

      Returns void

once: boolean

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