Documentation
    Preparing search index...

    Function whenAll

    • Creates a Promise that will settle when the supplied Promises are settled.

      Type Parameters

      • T extends [] | readonly unknown[]

      Parameters

      • promises: T

        the Promises to wait for settling.

      Returns Promise<{ -readonly [P in string | number | symbol]: Awaited<T[P<P>]> }>

      a Promise that will get fulfilled when the supplied Promises are fulfilled. If any of the promises is rejected, the returned Promise will be rejected with AggregateError.

    • Creates a Promise that will settle when the supplied Promises are settled.

      Type Parameters

      • T

      Parameters

      • promises: Iterable<T | PromiseLike<T>>

        the Promises to wait for settling.

      Returns Promise<Awaited<T>[]>

      a Promise that will get fulfilled when the supplied Promises are fulfilled. If any of the promises is rejected, the returned Promise will be rejected with AggregateError.