Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TaskState

Hierarchy

  • TaskState

Index

Constructors

constructor

Properties

absoluteDeadline

absoluteDeadline: Timestamp

The absolute deadline of this task instance

completed

completed: boolean = false

whether or not the task has finished running

elapsedTicks

elapsedTicks: number = 0

the number of ticks that this task was executed

elapsedTime

elapsedTime: number = 0

the time the task has run, for accounting

enqueuedTime

enqueuedTime: Timestamp

the time at which the task was enqueued, for accouting

iterator

iterator: IterableIterator<SchedulerMessage | Promise<any>>

the generator function of the task

lastAsyncRespose

lastAsyncRespose: any | undefined

lastMessage

lastMessage: SchedulerMessage | Promise<any> | undefined

Optional parent

parent: TaskState

retval

retval: any = null

return value of the task after it has finished

task

task: Task

the enveloped task structure

Accessors

isRunnable

  • get isRunnable(): boolean

isWaiting

  • get isWaiting(): boolean

priority

  • get priority(): number

status

Methods

next

  • call the generator function of the task again

    Parameters

    • Default value input: any = undefined

    Returns SchedulerMessage | Promise<any>

terminate

  • terminate(): void
  • update the times of the task and call onTermined()

    Returns void

toString

  • toString(): string
  • convert task to a human readable string

    Returns string

Generated using TypeDoc