| Package | Description |
|---|---|
| com.linecorp.armeria.common.util |
Generic utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
static <U> UnmodifiableFuture<U> |
UnmodifiableFuture.completedFuture(U value)
Returns an
UnmodifiableFuture which has been completed with the specified value. |
static <U> UnmodifiableFuture<U> |
UnmodifiableFuture.exceptionallyCompletedFuture(Throwable cause)
Returns an
UnmodifiableFuture which has been completed exceptionally with the specified
Throwable. |
static <U> UnmodifiableFuture<U> |
UnmodifiableFuture.wrap(CompletableFuture<U> future)
Returns an
UnmodifiableFuture which will be completed when the specified
CompletableFuture is completed. |
Copyright © 2020 LeanCloud. All rights reserved.