Mix and match RxJava subscription threads
问题 Is it possible to mix and match scheduler threads in RxJava. Basically I want to do something like the following on Android. uiObservable .switchMap(o -> return anotherUIObservable) .subscribeOn(AndroidSchedulers.mainThread()) .switchMap(o -> return networkObservable) .subscribeOn(Schedulers.newThread()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(result -> doSomething(result)) Is that possible within the same subscription ? 回答1: Yes it's possible and really easy after you have