Created
September 7, 2017 03:45
-
-
Save yatatsu/4d9f60b0dea33a844f09e0fdeed76868 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
package com.github.yatatsu.util; | |
public interface ScheduleUnit { | |
@NonNull Scheduler io(); | |
@NonNull Scheduler ui(); | |
final class AppUnit implements ScheduleUnit { | |
@NonNull public Scheduler io() { | |
return Schedulers.io(); | |
} | |
@NonNull public Scheduler ui() { | |
return AndroidSchedulers.mainThread(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment