Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CommandQueue

TODO.

Hierarchy

  • CommandQueue

Index

Constructors

constructor

Properties

Private _currentCommand

_currentCommand: Function | undefined

Private _currentCommandPending

_currentCommandPending: Promise<any> | 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

pause

  • pause(): void

push

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

    Type parameters

    • TResult

    Parameters

    • command: function

      Any command ready to be pushed into the command queue.

        • (): Promise<TResult> | TResult
        • Returns Promise<TResult> | TResult

    • Optional execute: boolean

    Returns Promise<TResult>

Generated using TypeDoc