context(handler:)

Returns the ChannelHandlerContext that belongs to a ChannelHandler.

ChannelPipeline.swift:475

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 the ChannelHandlerContext should be returned

Returns

the EventLoopFuture which will be notified once the the operation completes.