Instance Method (Default implementation)swift-nio 2.72.0NIOCore
close(context:mode:promise:)
ChannelHandler.swift:260func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?)
Implements
func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?
) Called to request that the
Channel
close itself down.
Other members in extension
Instance members
func bind(context: ChannelHandlerContext, to: SocketAddress, promise: EventLoopPromise<Void>?
) func connect(context: ChannelHandlerContext, to: SocketAddress, promise: EventLoopPromise<Void>?
) func flush(context: ChannelHandlerContext
) func read(context: ChannelHandlerContext
) func register(context: ChannelHandlerContext, promise: EventLoopPromise<Void>?
) func triggerUserOutboundEvent(context: ChannelHandlerContext, event: Any, promise: EventLoopPromise<Void>?
) func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?
)