NIOAsyncSequenceProducerBackPressureStrategies
NIOAsyncSequenceProducerStrategies.swift:15enum NIOAsyncSequenceProducerBackPressureStrategies
enum NIOAsyncSequenceProducerBackPressureStrategies
s7NIOCore46NIOAsyncSequenceProducerBackPressureStrategiesO
What are these?3QKJ1
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
.
struct NIOThrowingAsyncSequenceProducer<Element, Failure, Strategy, Delegate> where Element : Sendable, Failure : Error, Strategy : NIOAsyncSequenceProducerBackPressureStrategy, Delegate : NIOAsyncSequenceProducerDelegate
This is an AsyncSequence
that supports a unicast AsyncIterator
.
protocol NIOAsyncSequenceProducerBackPressureStrategy : Sendable
A protocol for the back-pressure strategy of the NIOAsyncSequenceProducer
.
protocol NIOAsyncSequenceProducerDelegate : Sendable
The delegate of NIOAsyncSequenceProducer
.
struct NIOAsyncWriter<Element, Delegate> where Element == Delegate.Element, Delegate : NIOAsyncWriterSinkDelegate
A NIOAsyncWriter
is a type used to bridge elements from the Swift Concurrency domain into a synchronous world. The Task
s that are yielding to the NIOAsyncWriter
are the producers. Whereas the NIOAsyncWriterSinkDelegate
is the consumer.
protocol NIOAsyncWriterSinkDelegate : Sendable
The delegate of the NIOAsyncWriter
. It is the consumer of the yielded writes to the NIOAsyncWriter
. Furthermore, the delegate gets informed when the NIOAsyncWriter
terminated.
struct HighLowWatermark
A high-low watermarked back-pressure strategy for a NIOAsyncSequenceProducer
.