Junior — Senior
Determining the execution threads of RxJava operators in a chain with subscribeOn and observeOn
livecode
Task condition
It is necessary to understand in which thread the execution of the operators just, map, and subscribe will occur if the launch is from the main (UI) thread.
Observable.just(true, true)
.map { }
.subscribeOn(Schedulers.io())
.subscribeOn(Schedulers.computation())
.observeOn(Schedulers.io())
.observeOn(Schedulers.computation())
.subscribe { }