/** * Schedule a Runnable to execute in the future. Event will be executed on Fiber thread. */ public Disposable schedule(Runnable command, long delay, TimeUnit unit) { return _scheduler.schedule(command, delay, unit); }
/** * Schedule a Runnable to execute in the future. Event will be executed on Fiber thread. */ public Disposable schedule(Runnable command, long delay, TimeUnit unit) { return _scheduler.schedule(command, delay, unit); }
public void reset() { checkState(started); future.ifPresent(Disposable::dispose); future = Optional.of(scheduler.schedule(action, timeout, MILLISECONDS)); }