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.
OptionalerrorMessage: string
Message to use as introductory text of the error if an error occurs.
Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.
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.