This class allows async functions to be executed in the order they were enqueued. It guarantees that no functions execute concurrently and that they are executed in order.

Hierarchy

  • PromiseChain

Constructors

Methods

Constructors

Methods

  • Enqueues the specified async function for execution. It will be added to an internal queue and executed once all prior functions have finished.

    Returns

    A promise that is fulfilled once the asyncFunction has finished its execution. It will contain the return value of the supplied function.

    Type Parameters

    • T

    Parameters

    Returns Promise<T>

Generated using TypeDoc