• Await all promises and resolve if non of them failed. Reject if at least one of them was rejected, but only once all of them are finished. Throws an error consisting of a list of reasons.

    Parameters

    • promises: Promise<any>[]

      Promises to settle.

    • Optional errorMessage: string

      Message to use as introductory text of the error if an error occurs.

    Returns Promise<void>

Copyright Ⓒ 2023 SAP SE or an SAP affiliate company. All rights reserved.