whenAllSucceed(_:on:)

Returns a new EventLoopFuture that succeeds only if all of the provided futures succeed. The new EventLoopFuture will contain all of the values fulfilled by the futures.

EventLoopFuture.swift:1342
@preconcurrency static func whenAllSucceed(_ futures: [EventLoopFuture<Value>], on eventLoop: any EventLoop) -> EventLoopFuture<[Value]> where Value : Sendable

Parameters

futures

An array of homogenous EventLoopFutures to wait on for fulfilled values.

eventLoop

The EventLoop on which the new EventLoopFuture callbacks will fire.

Returns

A new EventLoopFuture with all of the values fulfilled by the provided futures.

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