inbound
The stream of inbound messages.
This declaration is deprecated: Use the executeThenClose scoped method instead.
var inbound: NIOAsyncChannelInboundStream<Inbound> { get }
The stream of inbound messages.
This declaration is deprecated: Use the executeThenClose scoped method instead.
var inbound: NIOAsyncChannelInboundStream<Inbound> { get }
s7NIOCore15NIOAsyncChannelV7inboundAA0bC13InboundStreamVyxGvp
What are these?2L2B6
import NIOCore
The core abstractions that make up SwiftNIO.
struct NIOAsyncChannel<Inbound, Outbound> where Inbound : Sendable, Outbound : Sendable
Wraps a NIO Channel
object into a form suitable for use in Swift Concurrency.
struct NIOAsyncChannelInboundStream<Inbound> where Inbound : Sendable
The inbound message asynchronous sequence of a NIOAsyncChannel
.
init(wrappingChannelSynchronously channel: Channel, configuration: Configuration = .init()) throws
Initializes a new NIOAsyncChannel
wrapping a Channel
.
init(wrappingChannelSynchronously channel: Channel, configuration: Configuration = .init()) throws where Outbound == Never
Initializes a new NIOAsyncChannel
wrapping a Channel
where the outbound type is Never
.
static func _wrapAsyncChannelWithTransformations(wrappingChannelSynchronously channel: Channel, backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark? = nil, isOutboundHalfClosureEnabled: Bool = false, channelReadTransformation: @escaping (Channel) -> EventLoopFuture<Inbound>) throws -> NIOAsyncChannel<Inbound, Outbound> where Outbound == Never
This method is only used from our server bootstrap to allow us to run the child channel initializer at the right moment.
let channel: Channel
The underlying channel being wrapped by this NIOAsyncChannel
.
func executeThenClose<Result>(_ body: (_ inbound: NIOAsyncChannelInboundStream<Inbound>, _ outbound: NIOAsyncChannelOutboundWriter<Outbound>) async throws -> Result) async throws -> Result
Provides scoped access to the inbound and outbound side of the underlying Channel
.
struct Configuration
init(synchronouslyWrapping channel: Channel, configuration: Configuration = .init()) throws
Initializes a new NIOAsyncChannel
wrapping a Channel
.
init(synchronouslyWrapping channel: Channel, configuration: Configuration = .init()) throws where Outbound == Never
Initializes a new NIOAsyncChannel
wrapping a Channel
where the outbound type is Never
.
static func _wrapAsyncChannelWithTransformations(synchronouslyWrapping channel: Channel, backPressureStrategy: NIOAsyncSequenceProducerBackPressureStrategies.HighLowWatermark? = nil, isOutboundHalfClosureEnabled: Bool = false, channelReadTransformation: @escaping (Channel) -> EventLoopFuture<Inbound>) throws -> NIOAsyncChannel<Inbound, Outbound> where Outbound == Never
This method is only used from our server bootstrap to allow us to run the child channel initializer at the right moment.
var outbound: NIOAsyncChannelOutboundWriter<Outbound> { get }
The writer for writing outbound messages.