Required Instance Methodswift-nio 2.81.0NIOCore

channelReadComplete(context:)

Called when the Channel has completed its current read loop, either because no more data is available to read from the transport at this time, or because the Channel needs to yield to the event loop to process other I/O events for other Channels. If ChannelOptions.autoRead is false no further read attempt will be made until ChannelHandlerContext.read or Channel.read is explicitly called.

ChannelHandler.swift:188
func channelReadComplete(context: ChannelHandlerContext)

Parameters

context

The ChannelHandlerContext which this ChannelHandler belongs to.

This should call context.fireChannelReadComplete to forward the operation to the next _ChannelInboundHandler in the ChannelPipeline if you want to allow the next handler to also handle the event.