NIOAsyncSequenceProducerBackPressureStrategy

    A protocol for the back-pressure strategy of the NIOAsyncSequenceProducer.

    NIOAsyncSequenceProducer.swift:31
    iOS
    13+
    macOS
    10.15+
    tvOS
    13+
    watchOS
    6+
    protocol NIOAsyncSequenceProducerBackPressureStrategy : Sendable
    Browse conforming types

    A back-pressure strategy is invoked when new elements are yielded to the sequence or when a AsyncIterator requested the next value. The responsibility of the strategy is to determine whether more elements need to be produced .

    If more elements need to be produced, either the produceMore method will be called or a YieldResult will be returned that indicates to produce more.

    Supertypes

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.

    Requirements

    Instance members

    See also