flatMapBlocking(onto:_:)

    Chain an EventLoopFuture<NewValue> providing the result of a IO / task that may block. For example:

    EventLoopFuture.swift:1682
    @preconcurrency func flatMapBlocking<NewValue>(onto queue: DispatchQueue, _ callbackMayBlock: @escaping (Value) throws -> NewValue) -> EventLoopFuture<NewValue>

    Parameters

    onto

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

    callbackMayBlock

    Function that will receive the value of this EventLoopFuture and return a new EventLoopFuture.

    promise.futureResult.flatMapBlocking(onto: DispatchQueue.global()) { value in Int
        blockingTask(value)
    }

    Other members in extension

    Type members

    Instance members

    Show obsolete interfaces (9)

    Hide obsolete interfaces