CloseMode

public enum CloseMode

Specify what kind of close operation is requested.

  • Close the output (writing) side of the Channel without closing the actual file descriptor. This is an optional mode which means it may not be supported by all Channel implementations.

    Declaration

    Swift

    case output
  • Close the input (reading) side of the Channel without closing the actual file descriptor. This is an optional mode which means it may not be supported by all Channel implementations.

    Declaration

    Swift

    case input
  • all

    Close the whole `Channel (file descriptor).

    Declaration

    Swift

    case all