Say there is interface containing methods:
Observable<Data> makeHttpCall(int param1, boolean param2);
Completable storeInDatabase(Data data);
Completable combinedCall(int param1, boolean param2);
What is the best way to implement the combinedCall method that would:
- fetch data from makeHttpCall
- store it using storeInDatabase
- return Completable that completes when storeInDatabase completes?
Seems that in RxJava 1.0 it was possible to do Completable.merge(Observable) but merge does not seem to accept Observable any more.