Instance Method
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
futuresAn array of futures to wait for.
Return Value
A new EventLoopFuture.
Discussion
The returned EventLoopFuture will fail if any of the provided futures fails. All remaining EventLoopFuture objects will be ignored.