Last active
February 1, 2021 22:36
-
-
Save longv/92d22bcf1d14593f5bac6e7d617ba793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun debugSubscribeOn(): Disposable = | |
Observable.just(1, 2, 3) | |
.doOnNext { | |
println(Thread.currentThread().name) // RxCachedThreadScheduler-1 | |
} | |
.subscribeOn(Schedulers.io()) | |
.subscribeOn(Schedulers.computation()) | |
.doOnNext { | |
println(Thread.currentThread().name) // RxCachedThreadScheduler-1 | |
} | |
.subscribe() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment