Created
March 22, 2017 08:23
-
-
Save pszklarska/abe9de111707d1bdf4bbb77a4a3df4bf to your computer and use it in GitHub Desktop.
RxJava example for combining two dependent Observables
This file contains hidden or 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
Observable<CatWithToys> catWithToysObservable = | |
getCatObservable() | |
.flatMap((cat) -> getToysForCatObservable(cat), | |
(cat, toys) -> new CatWithToys(cat, toys)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment