Schedules are queues of async actions that need to be executed sequentially

  • Actions can be queued immediately or with a delay, callbacks inform when the action has been completed
  • Action ids are unique, rescheduling cancels any pending actions with the same id
  • A schedule rotates around stopped -> running -> stopping -> stopped -> ...
  • You can push actions to a stopped or running schedule
  • You can stop a running schedule, or it stops automatically when the queue is empty

Hierarchy

Properties

dispose: Disposer
name: string
pending: (() => number)

Type declaration

    • (): number
    • Returns number

push: ((action) => void)

Type declaration

    • (action): void
    • Parameters

      Returns void

status: (() => Status)

Type declaration

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

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

Generated using TypeDoc