`Event`’s definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Event<Output, Failure: Error> { | |
case completion(Subscribers.Completion<Failure>) /// (1) Combine already tucks | |
/// away completion events in their `Subscribers.Completion<Failure>` enumeration. | |
/// We just wrap it as an associated value in the `Event.completion` case. | |
case value(Output) /// (2) Any non-completion `Event` represents an emitted value. | |
/// So, we place it in a `.value` case. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment