Skip to content

Instantly share code, notes, and snippets.

@Otbivnoe
Last active September 11, 2017 15:50
Show Gist options
  • Save Otbivnoe/b9d178e46ace2f4c77338f9a808c02f5 to your computer and use it in GitHub Desktop.
Save Otbivnoe/b9d178e46ace2f4c77338f9a808c02f5 to your computer and use it in GitHub Desktop.
login(username: "Username", password: "Password")
.flatMap { [weak self] user -> Observable<[Post]> in
return self.loadPosts(for: user)
}
.subscribe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment