init(handlers:loop:)

Create a new instance.

AsyncTestingChannel.swift:306
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
@preconcurrency convenience init(handlers: [ChannelHandler & Sendable], loop: NIOAsyncTestingEventLoop = NIOAsyncTestingEventLoop()) async

Parameters

handlers

The ChannelHandlers to add to the ChannelPipeline before register.

loop

The NIOAsyncTestingEventLoop to use.

During creation it will automatically also register itself on the NIOAsyncTestingEventLoop.