finish(_:)

    Finishes the sequence with the given Failure.

    NIOThrowingAsyncSequenceProducer.swift:390
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    func finish(_ failure: Failure)

    Parameters

    failure

    The failure why the sequence finished.

    Calling this function signals the sequence that there won’t be any subsequent elements yielded.

    If there are still buffered elements and there is an AsyncIterator consuming the sequence, then termination of the sequence only happens once all elements have been consumed by the AsyncIterator. Otherwise, the buffered elements will be dropped.

    Other members in extension

    Types

    Instance members