MaybeEvent

@frozen
public enum MaybeEvent<Element>

Undocumented

  • One and only sequence element is produced. (underlying observable sequence emits: .next(Element), .completed)

    Declaration

    Swift

    case success(Element)
  • Sequence terminated with an error. (underlying observable sequence emits: .error(Error))

    Declaration

    Swift

    case error(Swift.Error)
  • Sequence completed successfully.

    Declaration

    Swift

    case completed