| Constructor and Description |
|---|
SchedulerSameThreadImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
shutdown() |
<T> java.util.concurrent.CompletableFuture<T> |
supplyLater(SchedulerPoll type,
java.time.Duration delay,
ThrowingSupplier<T,java.lang.Throwable> supplier)
Runs the supplier in the specified thread
after the specified delay
|
public <T> java.util.concurrent.CompletableFuture<T> supplyLater(SchedulerPoll type, java.time.Duration delay, ThrowingSupplier<T,java.lang.Throwable> supplier)
SchedulersupplyLater in interface SchedulerT - the supplier return typetype - the thread typedelay - the delaysupplier - the supplier to run