RxJava/RxAndroid : Load from cache before api call using Observable.concat()
Mert Şimşek
506

good article.

doOnNext can be used instead of map operator.

“This observable subscribeOn(Schedulers.io()) but I want to do database.save() operation on Schedulers.computation(). How is that possible to do Subsequent operation on different scheduler? Do you have any idea about it ?”

apiSource.getRadioList()
.observeOn(Schedulers.io())
.doOnNext(this::saveToDb)
.subscribeOn(Schedulers.computation())
.//
Show your support

Clapping shows how much you appreciated Huseyin Barin’s story.