Instantly share code, notes, and snippets.

Embed
What would you like to do?
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