Hierarchy

  • Task
    • Task

Constructors

Properties

_taskData: ITaskData

Accessors

  • get enabled(): boolean

    Whether the task works.

    Returns boolean

  • set enabled(enabled: boolean): void

    Parameters

    • enabled: boolean

    Returns void

  • get value(): any

    The value returned by the last task executed.

    Returns any

Methods

  • Add the task to the end of the list.

    Parameters

    • callbacks: ITaskDelegate | ITaskDelegate[]

    Returns this

  • Execute the current task.

    Parameters

    • ...args: any[]

    Returns any

  • Skips all tasks and changes to the finished state.

    Returns this

  • Change the current task to the first task.

    Returns this

  • Change the current task to the next task.

    Returns this

  • Change the current task to the previos task.

    Returns this

  • Cancel all task and leave them unregistered.

    Returns this

  • Change the current task to the specified task.

    Parameters

    • index: number

    Returns this