Skip to content

Instantly share code, notes, and snippets.

@sergdort
Created June 3, 2017 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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