context(handler:)

    AsyncAwaitSupport.swift:197

    This declaration is deprecated: ChannelHandlerContext is not Sendable and it is therefore not safe to be used outside of its EventLoop

    @preconcurrency func context(handler: ChannelHandler & Sendable) async throws -> ChannelHandlerContext

    Other members in extension

    Types

    • enum Position

      A Position within the ChannelPipeline used to insert handlers into the ChannelPipeline.

    • struct SynchronousOperations

      A view of a ChannelPipeline which may be used to invoke synchronous operations.

    Type members

    • init(channel: Channel)

      Create ChannelPipeline for a given Channel. This method should never be called by the end-user directly: it is only intended for use with custom Channel implementations. Users should always use channel.pipeline to access the ChannelPipeline for a Channel.

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces