bind(to:promise:)

Fires the (outbound) bind event through the ChannelPipeline. If the event hits the NIOAsyncTestingChannel which happens when it travels the ChannelPipeline all the way to the front, this will also set the NIOAsyncTestingChannel’s localAddress.

AsyncTestingChannel.swift:625
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
func bind(to address: SocketAddress, promise: EventLoopPromise<Void>?)

Parameters

address

The address to fake-bind to.

promise

The EventLoopPromise which will be fulfilled when the fake-bind operation has been done.