setWritability(to:)
Sets the writability of the NIOAsyncWriter
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func setWritability(to writability: Bool)
Parameters
- writability
The new writability of the
NIOAsyncWriter
.
If the writer becomes writable again all suspended yields will be resumed and the produced elements will be forwarded via the didYield(contentsOf:)
method. If the writer becomes unwritable all subsequent calls to didYield(contentsOf:)
will suspend.