Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • _Task
    • Task

Index

Constructors

constructor

  • new Task(tasks: ITaskDelegate | ITaskDelegate[], context: any): Task
  • Parameters

    • tasks: ITaskDelegate | ITaskDelegate[]
    • context: any

    Returns Task

Properties

Private _piximData

_piximData: ITaskData

Protected _taskData

_taskData: ITaskData

Accessors

enabled

  • get enabled(): boolean
  • set enabled(enabled: boolean): any
  • Whether the task works.

    Returns boolean

  • Whether the task works.

    Parameters

    • enabled: boolean

    Returns any

value

  • get value(): any
  • The value returned by the last task executed.

    Returns any

Methods

add

  • add(callbacks: ITaskDelegate | ITaskDelegate[]): Task
  • Add the task to the end of the list.

    Parameters

    • callbacks: ITaskDelegate | ITaskDelegate[]

    Returns Task

cemit

  • cemit(type: string, context: any, ...args: any[]): Task

cemitAll

  • cemitAll(context: any, ...args: any[]): Task

clear

  • clear(type?: string): Task

destroy

  • destroy(): void

done

  • done(...args: any[]): any
  • Execute the current task.

    Parameters

    • Rest ...args: any[]

    Returns any

emit

  • emit(type: string, ...args: any[]): Task

emitAll

  • emitAll(...args: any[]): Task

finish

  • Skips all tasks and changes to the finished state.

    Returns Task

first

  • Change the current task to the first task.

    Returns Task

next

  • Change the current task to the next task.

    Returns Task

off

  • off(type: string, callback: ITaskDelegate): Task

on

  • on(type: string, callback: ITaskDelegate): Task

once

  • once(type: string, callback: ITaskDelegate): Task

prev

  • Change the current task to the previos task.

    Returns Task

reset

  • Cancel all task and leave them unregistered.

    Returns Task

to

  • to(index: number): Task
  • Change the current task to the specified task.

    Parameters

    • index: number

    Returns Task

Generated using TypeDoc