finish(error:)

    Finishes the sink which will result in the NIOAsyncWriter being finished.

    NIOAsyncWriter.swift:412
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    func finish(error: Error)

    Calling this function signals the writer that any suspended or subsequent calls to yield(contentsOf:) or yield(_:) will return the passed error parameter.

    Other members in extension

    Instance members