A queue that processes promises with a given concurrency and delays after each promise if desired.

Constructors

Methods

Constructors

Methods

  • Add a promise to the queue. It returns a promise that can be awaited.

    Type Parameters

    • T

    Parameters

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

    Returns Promise<T>