init(handlers:loop:)

    Create a new instance.

    Embedded.swift:820
    init(handlers: [ChannelHandler], loop: EmbeddedEventLoop = EmbeddedEventLoop())

    Parameters

    handlers

    The ChannelHandlers to add to the ChannelPipeline before register.

    loop

    The EmbeddedEventLoop to use.

    During creation it will automatically also register itself on the EmbeddedEventLoop.

    Other members in extension

    Types

    • enum BufferState

      BufferState represents the state of either the inbound, or the outbound EmbeddedChannel buffer. These buffers contain data that travelled the ChannelPipeline all the way.

    • enum LeftOverState

      LeftOverState represents any left-over inbound, outbound, and pending outbound events that hit the EmbeddedChannel and were not consumed when finish was called on the EmbeddedChannel.

    • struct SynchronousOptions
    • struct WrongTypeError

      WrongTypeError is throws if you use readInbound or readOutbound and request a certain type but the first item in the respective buffer is of a different type.

    Type members

    Instance members

    Show implementation details (1)

    Hide implementation details