Function all

  • Creates a Promise that is resolved with an array of results when all of the provided Promises resolve, or rejected when any Promise is rejected. Wraps Promise.all.

    Type Parameters

    • T

    Parameters

    • createPromises: (() => Iterable<T | PromiseLike<T>>)

      A function that should return an array or iterable of Promises. The promises should be created inside this function.

        • (): Iterable<T | PromiseLike<T>>
        • Returns Iterable<T | PromiseLike<T>>

    Returns Promise<Awaited<T>[]>

    A new Promise.

Generated using TypeDoc