These are chat archives for ReactiveX/RxJava

11th
Jan 2017
ViTORossonero
@ViTORossonero
Jan 11 2017 09:40

@rajuashok what does call() do?

If you ignore result of doSomeBackgroundWork() you can use Completable instead:

Completable doSomeBackgroundWork() {
...
}


doSomeBackgroundWork()
.andThen(mApi.getData()
             .onErrorReturn(...))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Subscriber<..>() { ... })