Required Instance Methodswift-nio 2.72.0NIOCore
didYield(_:)
This method is called once a single element was yielded to the NIOAsyncWriter
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func didYield(_ element: Element)
If the NIOAsyncWriter
was writable when the sequence was yielded, the sequence will be forwarded right away to the delegate. If the NIOAsyncWriter
was NOT writable then the sequence will be buffered until the NIOAsyncWriter
becomes writable again.
The delegate might reentrantly call setWritability(to:)
while still processing writes.
Other requirements
Type members
associatedtype Element
The
Element
type of the delegate and the writer.
Instance members
func didTerminate(error: Error?
) This method is called once the
NIOAsyncWriter
is terminated.func didYield(contentsOf: Deque<Element>
) This method is called once a sequence was yielded to the
NIOAsyncWriter
.