init(backPressureStrategy:isOutboundHalfClosureEnabled:inboundType:outboundType:)

Initializes a new Configuration.

AsyncChannel.swift:60
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 to false.

inboundType

The inbound message’s type.

outboundType

The outbound message’s type.