context(handler:)
Returns the ChannelHandlerContext
that belongs to a ChannelHandler
.
This declaration is deprecated: This method is not strict concurrency safe. Prefer .syncOperations.context(handler:)
@preconcurrency func context(handler: ChannelHandler & Sendable) -> EventLoopFuture<ChannelHandlerContext>
Parameters
- handler
the
ChannelHandler
for which theChannelHandlerContext
should be returned
Returns
the EventLoopFuture
which will be notified once the the operation completes.