rx-java Retrofit and RxJava Making serial requests

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

RxJava is handy when making serial request. If you want to use the result from one request to make another you can use the flatMap operator:

api.getRepo(repoId).flatMap(repo -> api.getUser(repo.getOwnerId())
    .subscribe(/*do something with the result*/);


Got any rx-java Question?