whenFailureBlocking(onto:_:)

    Adds an observer callback to this EventLoopFuture that is called when the EventLoopFuture has a failure result. The observer callback is permitted to block.

    EventLoopFuture.swift:1731
    @preconcurrency func whenFailureBlocking(onto queue: DispatchQueue, _ callbackMayBlock: @escaping (Error) -> Void)

    Parameters

    onto

    the DispatchQueue on which the blocking IO / task specified by callbackMayBlock is scheduled.

    callbackMayBlock

    The callback that is called with the failed result of the EventLoopFuture.

    An observer callback cannot return a value, meaning that this function cannot be chained from. If you are attempting to create a computation pipeline, consider recover or flatMapError. If you find yourself passing the results from this EventLoopFuture to a new EventLoopPromise in the body of this function, consider using cascade instead.

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (9)

    Hide obsolete interfaces