I am writing an Android Application which needs to perform 2 queries in following order:
- Make a request(let's call it RequestA) to a library that returns a
Single<List<String>> urls. - Based on what I receive from RequestA, I have to make request(RequestB) to another library using each of these urls. Each of the RequestB now returns a Single.
Now I have combine all of the Single from all of the RequestB to form a observable.
Something like Observable.mergedelayerror(List<Single>). I can't do this because mergedelayerror expects iterable of ObservableSource.
I know I can achieve this by implementing callbacks and using some ugly logic But I am really looking for a solution by using only the operators provided by RX