andAllComplete(_:on:)

Returns a new EventLoopFuture that succeeds when all of the provided EventLoopFutures complete.

EventLoopFuture.swift:1504
static func andAllComplete(_ futures: [EventLoopFuture<Value>], on eventLoop: EventLoop) -> EventLoopFuture<Void>

Parameters

futures

An array of homogenous EventLoopFutures to wait for.

eventLoop

The EventLoop on which the new EventLoopFuture callbacks will execute on.

Returns

A new EventLoopFuture that succeeds after all futures complete.

The returned EventLoopFuture always succeeds, acting as a completion notification. Values fulfilled by each future are discarded.

If the results are needed, use whenAllComplete instead.