Last active
January 26, 2021 18:37
-
-
Save adam-hurwitz/a692d17d9c84f0b2885b2764824f51bb to your computer and use it in GitHub Desktop.
ODG - RxJava Schedulers Helper
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 <T> Observable<T>.IOAndMainSchedulers() = | |
this.subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()) | |
fun <T> Observable<T>.IOAndIOSchedulers() = | |
this.subscribeOn(Schedulers.io()).observeOn(Schedulers.io()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment