Instance Method (Default implementation)swift-nio 2.81.0NIOCore
flush(context:)
ChannelHandler.swift:252func flush(context: ChannelHandlerContext)
func flush(context: ChannelHandlerContext)
s7NIOCore23_ChannelOutboundHandlerPAAE5flush7contextyAA0bD7ContextC_tF
What are these?1BVTL
import NIOCore
The core abstractions that make up SwiftNIO.
protocol _ChannelOutboundHandler : ChannelHandler
Untyped ChannelHandler
which handles outbound I/O events or intercept an outbound I/O operation.
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
func flush(context: ChannelHandlerContext)
Called to request that the Channel
flush all pending writes. The flush operation will try to flush out all previous written messages that are pending.
func bind(context: ChannelHandlerContext, to address: SocketAddress, promise: EventLoopPromise<Void>?)
func close(context: ChannelHandlerContext, mode: CloseMode, promise: EventLoopPromise<Void>?)
func connect(context: ChannelHandlerContext, to address: SocketAddress, promise: EventLoopPromise<Void>?)
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>?)