whenAllComplete(_:promise:)

Completes a promise with the results of all provided EventLoopFutures.

EventLoopFuture.swift:1575
@preconcurrency static func whenAllComplete(_ futures: [EventLoopFuture<Value>], promise: EventLoopPromise<[Result<Value, Error>]>) where Value : Sendable

Parameters

futures

An array of homogenous EventLoopFutures to gather results from.

promise

The EventLoopPromise to complete with the result of the futures.

The promise will always be succeeded, regardless of the outcome of the futures.