public class ScheduledCompletableFuture extends Object
| Constructor and Description |
|---|
ScheduledCompletableFuture() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
schedule(ScheduledExecutorService executor,
Supplier<T> task,
long delay,
TimeUnit unit) |
static <T> CompletableFuture<T> |
submit(ScheduledExecutorService executor,
Supplier<T> task) |
public static <T> CompletableFuture<T> schedule(ScheduledExecutorService executor, Supplier<T> task, long delay, TimeUnit unit)
public static <T> CompletableFuture<T> submit(ScheduledExecutorService executor, Supplier<T> task)
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.