Required Instance Methodswift-nio 2.72.0NIOCore

    didYield(bufferDepth:)

    This method is called after new elements were yielded by the producer to the source.

    NIOAsyncSequenceProducer.swift:37
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    mutating func didYield(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 more elements should be produced.

    Other requirements

    Instance members

    • func didConsume(bufferDepth: Int) -> Bool

      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.