Instance Propertyswift-nio 2.81.0NIOCore
backPressureStrategy
The back pressure strategy of the inbound
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
var backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark
The back pressure strategy of the inbound
.
var backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark
s7NIOCore15NIOAsyncChannelV13ConfigurationV20backPressureStrategyAA0b20SequenceProducerBackF10StrategiesO16HighLowWatermarkVvp
What are these?8TPGA
import NIOCore
The core abstractions that make up SwiftNIO.
struct Configuration
struct NIOAsyncChannel<Inbound, Outbound> where Inbound : Sendable, Outbound : Sendable
Wraps a NIO Channel
object into a form suitable for use in Swift Concurrency.
var inbound: NIOAsyncChannelInboundStream<Inbound> { get }
The stream of inbound messages.
enum NIOAsyncSequenceProducerBackPressureStrategies
struct HighLowWatermark
A high-low watermarked back-pressure strategy for a NIOAsyncSequenceProducer
.
init(backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark = .init(
lowWatermark: 2,
highWatermark: 10
), isOutboundHalfClosureEnabled: Bool = false, inboundType: Inbound.Type = Inbound.self, outboundType: Outbound.Type = Outbound.self)
Initializes a new Configuration
.
var inboundType: Inbound.Type
The inbound
message’s type.
var isOutboundHalfClosureEnabled: Bool
If outbound half closure should be enabled. Outbound half closure is triggered once the NIOAsyncChannelOutboundWriter
is either finished or deinitialized.
var outboundType: Outbound.Type
The outbound
message’s type.