Last active
July 6, 2017 10:18
-
-
Save kota1921/1438cf6c4c966d86669fb13478e49971 to your computer and use it in GitHub Desktop.
rx-array-download
This file contains 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
public Observable<List<SomeModel>> loadItems() { | |
return apiService.getListOfElement() | |
.flatMapIterable(Result::getElements) | |
.flatMap(element -> apiService.getDetailedElement(element.getId())) | |
.toList() | |
.toObservable(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment