Skip to content

Type Method

whenTheySucceed(_:_:file:line:)

Returns a new EventLoopFuture that succeeds only if all of the provided fs succeed. The new EventLoopFuture will contain all of the values fulfilled by the fs.
static func whenTheySucceed<A, B>(_ fA: EventLoopFuture<A>, _ fB: EventLoopFuture<B>, file: StaticString = #file, line: UInt = #line) -> EventLoopFuture<(A, B)> where Value == (A, B)

Return Value

A new EventLoopFuture with all of the values fulfilled by the provided fs, as a tuple.

Discussion

The returned EventLoopFuture will fail as soon as any of the fs fails.

Note

This is esssentially just a heterogenous version of .whenAllSucceed().

See Also

EventLoopFuture