Interface AsyncDelay
-
- All Known Implementing Classes:
TimerDelay
public interface AsyncDelayPerforms a delay asynchronously. That is, schedules a task to be executed after the delay, potentially on another thread. If no delay is needed, the task may be executed directly on the calling thread.
-
-
Field Summary
Fields Modifier and Type Field Description static Supplier<AsyncDelay>NONE
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidafter(Throwable cause, Runnable task)Runs thetaskafter delay on an implementation-defined thread.voidafter(Throwable cause, Runnable task, Executor executor)Runs thetaskafter delay on givenExecutor.
-
-
-
Field Detail
-
NONE
static final Supplier<AsyncDelay> NONE
-
-