Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PromiseQueue

A simple promise queue to enforce the order of async APIs for example, start/stop video/audio input.

Hierarchy

  • PromiseQueue

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

queue

queue: Promise<void> = ...

Methods

add

  • add<T>(func: () => Promise<T>): Promise<T>
  • Type parameters

    • T

    Parameters

    • func: () => Promise<T>
        • (): Promise<T>
        • Returns Promise<T>

    Returns Promise<T>

Generated using TypeDoc