addHandler(_:name:position:)
Add a ChannelHandler
to the ChannelPipeline
.
@preconcurrency func addHandler(_ handler: any ChannelHandler & Sendable, name: String? = nil, position: ChannelPipeline.Position = .last) -> EventLoopFuture<Void>
Parameters
Returns
the EventLoopFuture
which will be notified once the ChannelHandler
was added.