public final class SwtScheduler extends Object implements Scheduler
Scheduler.WorkerDisposable.Composite, Disposable.Swap| Modifier and Type | Method and Description |
|---|---|
Scheduler.Worker |
createWorker() |
static Scheduler |
from(org.eclipse.swt.widgets.Display display) |
Disposable |
schedule(Runnable task) |
Disposable |
schedule(Runnable task,
long delay,
TimeUnit unit) |
Disposable |
schedulePeriodically(Runnable task,
long initialDelay,
long period,
TimeUnit unit) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDisposedpublic static Scheduler from(org.eclipse.swt.widgets.Display display)
display - a DisplaySchedulerpublic Disposable schedule(Runnable task)
public Disposable schedule(Runnable task, long delay, TimeUnit unit)
public Disposable schedulePeriodically(Runnable task, long initialDelay, long period, TimeUnit unit)
schedulePeriodically in interface Schedulerpublic Scheduler.Worker createWorker()
createWorker in interface Scheduler