public static interface Scheduler.Worker extends Disposable
| Modifier and Type | Method and Description |
|---|---|
default void |
dispose()
Instructs this worker to cancel all pending tasks, all running tasks in
a best-effort manner, reject new tasks and
release any resources associated with it.
|
Cancellation |
schedule(Runnable task)
Schedules the task on this worker.
|
void |
shutdown()
Deprecated.
move the implementation to
dispose() and call dispose from shutdown.
Will be removed in 3.1.0 |
isDisposedCancellation schedule(Runnable task)
task - the task to scheduleCancellation instance that let's one cancel this particular task.
If the Scheduler has been shut down, the Scheduler.REJECTED Cancellation instance is returned.@Deprecated void shutdown()
dispose() and call dispose from shutdown.
Will be removed in 3.1.0default void dispose()
dispose in interface Cancellationdispose in interface Disposable