• Consume a promise, either adding it to the queue or waiting for it to resolve

    Type Parameters

    • T

    Parameters

    • promiseFn: (() => void | T | Promise<T>)
        • (): void | T | Promise<T>
        • Returns void | T | Promise<T>

    • wait: boolean

      Whether to wait for the promise to resolve or resolve immediately

    Returns Promise<void>

Generated using TypeDoc