init(synchronouslyWrapping:configuration:)

Initializes a new NIOAsyncChannel wrapping a Channel where the outbound type is Never.

AsyncChannel.swift:190

This declaration has been renamed to init(wrappingChannelSynchronously:configuration:).

This declaration is deprecated: This method has been deprecated since it defaults to deinit based resource teardown

init(synchronouslyWrapping channel: any Channel, configuration: NIOAsyncChannel<Inbound, Outbound>.Configuration = .init()) throws where Outbound == Never

Parameters

channel

The Channel to wrap.

configuration

The NIOAsyncChannels configuration.

This initializer will finish the outbound immediately.