Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandQueue

TODO.

Hierarchy

  • CommandQueue

Index

Constructors

constructor

  • If errorEvent has 1 listener, outputs the error message to the web console.

    Returns CommandQueue

Properties

Private _currentCommand

_currentCommand: Function | undefined

Private _currentCommandPending

_currentCommandPending: Promise | undefined

Private _paused

_paused: boolean = true

Private _queue

_queue: Array<object> = []

errorEvent

errorEvent: Event<Error> = new Event<Error>()

An error event.

Methods

Private _executeNextCommand

  • _executeNextCommand(): void

clear

  • clear(): void

execute

  • execute(): void
  • Execute the command queue

    Returns void

pause

  • pause(): void
  • Puase the command queue (currently executing commands will still complete)

    Returns void

push

  • push<TResult>(command: function, execute?: boolean): Promise
  • Push a command to the command queue.

    Type parameters

    • TResult

    Parameters

    • command: function

      Any command ready to be pushed into the command queue.

        • (): TResult
        • Returns TResult

    • Optional execute: boolean

    Returns Promise

Generated using TypeDoc