Skip to content

Instantly share code, notes, and snippets.

@sergdort
Created June 3, 2017 16:36
Show Gist options
  • Save sergdort/81fac066b1571f2f4a6a0024170e418a to your computer and use it in GitHub Desktop.
Save sergdort/81fac066b1571f2f4a6a0024170e418a to your computer and use it in GitHub Desktop.
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