Required Instance Methodswift-nio 2.81.0NIOCore

removeHandler(context:removalToken:)

Ask the receiving RemovableChannelHandler to remove itself from the ChannelPipeline as soon as possible. The receiving RemovableChannelHandler may elect to remove itself sometime after this method call, rather than immediately, but if it does so it must take the necessary precautions to handle events arriving between the invocation of this method and the call to ChannelHandlerContext.leavePipeline that triggers the actual removal.

ChannelHandler.swift:334
func removeHandler(context: ChannelHandlerContext, removalToken: ChannelHandlerContext.RemovalToken)

Parameters

context

The ChannelHandlerContext of the RemovableChannelHandler to be removed from the ChannelPipeline.

removalToken

The removal token to hand to ChannelHandlerContext.leavePipeline to trigger the actual removal from the ChannelPipeline.