removeHandler(_:promise:)

Remove a ChannelHandler from the ChannelPipeline.

ChannelPipeline.swift:397
@preconcurrency func removeHandler(_ handler: RemovableChannelHandler & Sendable, promise: EventLoopPromise<Void>?)

Parameters

handler

the ChannelHandler to remove.

promise

An EventLoopPromise that will complete when the ChannelHandler is removed.