Event

public enum Event<Value>

Represent a single event in a sequence. Can be:

  • next - represents an event with value inside (whenever new data is available for a sequence).
  • error - represents an error has occurred for the stream, should dispose all of the observable resources when this event occurres.
  • completed - represents a sequence has completed, should dispose all of the observable resources when this event occurres.

Completed could be used for short lived streams like creating an observable for network requests. Some sequences are infinite like UI components (we do not know when they end).

  • Undocumented

    Declaration

    Swift

    case next(Value)
  • Undocumented

    Declaration

    Swift

    case error(Swift.Error)
  • Undocumented

    Declaration

    Swift

    case completed