makeFailedFuture(_:)

    Creates and returns a new EventLoopFuture that is already marked as failed. Notifications will be done using this EventLoop as execution NIOThread.

    EventLoop.swift:844
    func makeFailedFuture<T>(_ error: Error) -> EventLoopFuture<T>

    Parameters

    error

    the Error that is used by the EventLoopFuture.

    Returns

    a failed EventLoopFuture.

    Other members in extension

    Instance members

    Show implementation details (3)

    Hide implementation details

    Show obsolete interfaces (2)

    Hide obsolete interfaces