Required Instance Methodswift-nio 2.72.0NIOCore

    close(mode:promise:)

    Close the Channel and so the connection if one exists.

    ChannelInvoker.swift:74
    func close(mode: CloseMode, promise: EventLoopPromise<Void>?)

    Parameters

    mode

    the CloseMode that is used

    promise

    the EventLoopPromise that will be notified once the operation completes, or nil if not interested in the outcome of the operation.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (9) members.

    Instance members

    Citizens in NIOCore

    Default implementations