Options
Menu

Class AsyncQueue

Queue async operations and executes them synchronously.

Hierarchy

  • AsyncQueue

Index

Interfaces

Methods

Methods

enqueue

  • enqueue(callback: function): Promise<any>
  • Adds the async operation to the queue

    Parameters

    • callback: function

      An async callback that returns a promise

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

    Returns Promise<any>

    A promise that will get resolved or rejected after executing the callback

Generated using TypeDoc