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:1090
func makeFailedFuture<T>(_ error: Error) -> EventLoopFuture<T>

Parameters

error

the Error that is used by the EventLoopFuture.

Returns

a failed EventLoopFuture.