Created
August 15, 2018 14:36
-
-
Save mayuroks/e5d9dc18770ee896fff79f9e528480a4 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
public class SchedulerProvider { | |
// UI thread | |
public static Scheduler ui() { | |
return AndroidSchedulers.mainThread(); | |
} | |
// IO thread | |
public static Scheduler io() { | |
return Schedulers.io(); | |
} | |
// Computation thread | |
public static Scheduler computation() { | |
return Schedulers.computation(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment