Instance Method (Default implementation)swift-nio 2.72.0NIOCore
write(context:data:promise:)
ChannelHandler.swift:248func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?)
Implements
func write(context: ChannelHandlerContext, data: NIOAny, promise: EventLoopPromise<Void>?
) Called to request a write operation. The write operation will write the messages through the
ChannelPipeline
. Those are then ready to be flushed to the actualChannel
whenChannel.flush
orChannelHandlerContext.flush
is called.
Other members in extension
Instance members
func bind(context: ChannelHandlerContext, to: SocketAddress, promise: EventLoopPromise<Void>?
) func close(context: ChannelHandlerContext, mode: CloseMode, 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>?
)