Created
June 3, 2017 16:36
-
-
Save sergdort/81fac066b1571f2f4a6a0024170e418a to your computer and use it in GitHub Desktop.
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
public protocol ObserverType { | |
associatedtype E | |
func on(event: Event<E>) | |
} | |
public enum Event<T> { | |
case next(T) | |
case error(Error) | |
case completed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment