makeCompletedFuture(_:)

Creates and returns a new EventLoopFuture that is marked as succeeded or failed with the value held by result.

EventLoop.swift:1200
@preconcurrency func makeCompletedFuture<Success>(_ result: Result<Success, any Error>) -> EventLoopFuture<Success> where Success : Sendable

Parameters

result

The value that is used by the EventLoopFuture

Returns

A completed EventLoopFuture.