Structureswift-nio 2.81.0NIOCore
NewSequence
Simple struct for the return type of makeSequence(elementType:backPressureStrategy:delegate:)
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
struct NewSequence
Simple struct for the return type of makeSequence(elementType:backPressureStrategy:delegate:)
.
struct NewSequence
import NIOCore
The core abstractions that make up SwiftNIO.
struct NIOAsyncSequenceProducer<Element, Strategy, Delegate> where Element : Sendable, Strategy : NIOAsyncSequenceProducerBackPressureStrategy, Delegate : NIOAsyncSequenceProducerDelegate
This is an AsyncSequence
that supports a unicast AsyncIterator
.
static func makeSequence(elementType: Element.Type = Element.self, backPressureStrategy: Strategy, delegate: Delegate) -> NewSequence
Initializes a new NIOAsyncSequenceProducer
and a Source
.
let source: Source
The source of the NIOAsyncSequenceProducer
used to yield and finish.
let sequence: NIOAsyncSequenceProducer
The actual sequence which should be passed to the consumer.
static func makeSequence(elementType: Element.Type = Element.self, backPressureStrategy: Strategy, finishOnDeinit: Bool, delegate: Delegate) -> NewSequence
Initializes a new NIOAsyncSequenceProducer
and a Source
.
protocol Sendable