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