whenAllSucceed(_:promise:)

Completes the promise with the values of all futures if all provided futures succeed. If any of the provided futures fail then promise will be failed.

EventLoopFuture.swift:1336
@preconcurrency static func whenAllSucceed(_ futures: [EventLoopFuture<Value>], promise: EventLoopPromise<[Value]>) where Value : Sendable

Parameters

futures

An array of homogenous EventLoopFuturess to wait for.

promise

The EventLoopPromise to complete with the result of this call.

If the _results of all futures should be collected use andAllComplete instead.