Required Instance Methodswift-nio 2.84.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.

NIOAsyncSequenceProducer.swift:45
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.