init(synchronouslyWrapping:configuration:)
Initializes a new NIOAsyncChannel
wrapping a Channel
where the outbound type is Never
.
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
NIOAsyncChannel
s configuration.
This initializer will finish the outbound
immediately.