Required Instance Methodswift-nio 2.72.0NIOCore
didConsume(bufferDepth:)
This method is called after the consumer consumed an element. More specifically this method is called after next
was called on an iterator of the NIOAsyncSequenceProducer
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
mutating func didConsume(bufferDepth: Int) -> Bool
Parameters
- bufferDepth
The current depth of the internal buffer of the sequence. The buffer contains all the yielded but not yet consumed elements.
Returns
Returns whether the producer should produce more elements.
Other requirements
Instance members
func didYield(bufferDepth: Int
) -> Bool This method is called after new elements were yielded by the producer to the source.