Initializerswift-nio 2.72.0NIOCore
init(backPressureStrategy:isOutboundHalfClosureEnabled:inboundType:outboundType:)
Initializes a new Configuration
.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init(backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark = .init(
lowWatermark: 2,
highWatermark: 10
), isOutboundHalfClosureEnabled: Bool = false, inboundType: Inbound.Type = Inbound.self, outboundType: Outbound.Type = Outbound.self)
Parameters
- backPressureStrategy
The back pressure strategy of the
inbound
. Defaults to a watermarked strategy (lowWatermark: 2, highWatermark: 10).- isOutboundHalfClosureEnabled
If outbound half closure should be enabled. Outbound half closure is triggered once the
NIOAsyncChannelOutboundWriter
is either finished or deinitialized. Defaults tofalse
.- inboundType
The
inbound
message’s type.- outboundType
The
outbound
message’s type.
Other members in extension
Instance members
var backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark
The back pressure strategy of the
inbound
.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.