removeHandler(context:promise:)

Remove a ChannelHandler from the ChannelPipeline.

ChannelPipeline.swift:442

This declaration is deprecated: Use .syncOperations.removeHandler(context:) instead, this method is not Sendable-safe.

func removeHandler(context: ChannelHandlerContext, promise: EventLoopPromise<Void>?)

Parameters

context

the ChannelHandlerContext that belongs to ChannelHandler that should be removed.

promise

An EventLoopPromise that will complete when the ChannelHandler is removed.