| Modifier and Type | Method and Description |
|---|---|
static <T> CompletableFuture<T> |
MoreFutures.addTimeout(CompletableFuture<T> future,
MoreFutures.ValueSupplier<T> onTimeout,
io.airlift.units.Duration timeout,
ScheduledExecutorService executorService)
Returns a new future that is completed when the supplied future completes or
when the timeout expires.
|
Copyright © 2010-2016 Airlift. All Rights Reserved.