andAllSucceed(_:promise:)

Succeeds the promise if all of the provided futures succeed. If any of the provided futures fail then the promise will be failed – even if some futures are yet to complete.

EventLoopFuture.swift:1287
static func andAllSucceed(_ futures: [EventLoopFuture<Value>], promise: EventLoopPromise<Void>)

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.