flatten(_:)
Returns a new EventLoopFuture
that succeeds only when all the provided futures succeed, ignoring the resolved values.
func flatten(_ futures: [EventLoopFuture<Void>]) -> EventLoopFuture<Void>
Parameters
- futures
An array of futures to wait for.
Returns
A new EventLoopFuture
.
The returned EventLoopFuture
will fail if any of the provided futures fails. All remaining EventLoopFuture
objects will be ignored.