Skip to content

Instantly share code, notes, and snippets.

@vvsevolodovich
Created March 31, 2018 06:43
Show Gist options
  • Save vvsevolodovich/89fdd5e6d41ec598c1561e55d2eefcb8 to your computer and use it in GitHub Desktop.
Save vvsevolodovich/89fdd5e6d41ec598c1561e55d2eefcb8 to your computer and use it in GitHub Desktop.
Scheduler
public abstract class Scheduler {
@NonNull
public Disposable scheduleDirect(@NonNull Runnable run) { ... }
@NonNull
public Disposable scheduleDirect(@NonNull Runnable run, long delay, @NonNull TimeUnit unit) { ... }
@NonNull
public Disposable schedulePeriodicallyDirect(@NonNull Runnable run, long initialDelay, long period, @NonNull TimeUnit unit) { ... } {
@NonNull
public <S extends Scheduler & Disposable> S when(@NonNull Function<Flowable<Flowable<Completable>>, Completable> combine) { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment