Instance Methodswift-nio 2.72.0NIOCore
finish(error:)
Finishes the sink which will result in the NIOAsyncWriter
being finished.
- 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
func finish(
) Finishes the sink which will result in the
NIOAsyncWriter
being finished.func setWritability(to: Bool
) Sets the writability of the
NIOAsyncWriter
.