Enumerations

The following enumerations are available globally.

  • 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).

    See more

    Declaration

    Swift

    public enum Event<Value>