Skip to content

Instantly share code, notes, and snippets.

@sergdort
Last active June 3, 2017 16:26
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/f97b6476109b0a9810e2d8c28791353c to your computer and use it in GitHub Desktop.
Save sergdort/f97b6476109b0a9810e2d8c28791353c to your computer and use it in GitHub Desktop.
public protocol ObservableType {
associatedtype E
func subscribe<O: ObserverType>(observer: O) -> Disposable where O.E == E
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment