A runnable task with priority in a TaskQueue.

Constructors

Properties

Methods

Constructors

  • Parameters

    • run: (() => Promise<void>)

      The task's runnable function.

        • (): Promise<void>
        • The task's runnable function.

          Returns Promise<void>

    • priority: number = 0

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

    Returns RunnableTask

Properties

priority: number = 0

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

run: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • The task's runnable function.

      Returns Promise<void>

Methods

Generated using TypeDoc