init(synchronouslyWrapping:configuration:)

Initializes a new NIOAsyncChannel wrapping a Channel.

AsyncChannel.swift:160

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: Channel, configuration: Configuration = .init()) throws

Parameters

channel

The Channel to wrap.

configuration

The NIOAsyncChannels configuration.