Instance Methodswift-nio 2.72.0NIOCore
finish
Finishes the sink which will result in the NIOAsyncWriter
being finished.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func finish()
Calling this function signals the writer that any suspended or subsequent calls to yield(contentsOf:)
or yield(_:)
will return a alreadyFinished(file:line:)
error.
Other members in extension
Instance members
func finish(error: Error
) Finishes the sink which will result in the
NIOAsyncWriter
being finished.func setWritability(to: Bool
) Sets the writability of the
NIOAsyncWriter
.