assertFailure(file:line:)

    Attaches a callback to the EventLoopFuture that asserts the original future’s failure.

    EventLoopFuture.swift:1799
    func assertFailure(file: StaticString = #fileID, line: UInt = #line) -> EventLoopFuture<Value>

    Parameters

    file

    The file this function was called in, for debugging purposes.

    line

    The line this function was called on, for debugging purposes.

    If the original future succeeds, it triggers an assertion failure, causing a runtime error during development. The assertion failure will include the file and line of the calling site.

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (9)

    Hide obsolete interfaces