T
- Data type stored within the CompletableFuturepublic static interface CompletableFutures.CompletableFutureKind<T> extends Higher<Witness.completableFuture,T>, java.util.concurrent.CompletionStage<T>
Modifier and Type | Interface and Description |
---|---|
static class |
CompletableFutures.CompletableFutureKind.Box<T> |
Modifier and Type | Method and Description |
---|---|
static <T> CompletableFutures.CompletableFutureKind<T> |
completedFuture(T value)
Construct a HKT encoded completed CompletableFuture
|
static <T> CompletableFutures.CompletableFutureKind<T> |
fromFuture(Future<T> completableFuture) |
static <T> CompletableFutures.CompletableFutureKind<T> |
narrow(Higher<Witness.completableFuture,T> future)
Convert the raw Higher Kinded Type for CompletableFutureKind types into the CompletableFutureKind type definition class
|
static <T> CompletableFutures.CompletableFutureKind<T> |
narrowFuture(Higher<Witness.future,T> future) |
static <T> java.util.concurrent.CompletableFuture<T> |
narrowK(Higher<Witness.completableFuture,T> completableFuture)
Convert the HigherKindedType definition for a CompletableFuture into
|
static CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAsync(java.lang.Runnable runnable) |
static CompletableFutures.CompletableFutureKind<java.lang.Void> |
runAsync(java.lang.Runnable runnable,
java.util.concurrent.Executor executor) |
static <U> CompletableFutures.CompletableFutureKind<U> |
supplyAsync(java.util.function.Supplier<U> supplier) |
static <U> CompletableFutures.CompletableFutureKind<U> |
supplyAsync(java.util.function.Supplier<U> supplier,
java.util.concurrent.Executor executor) |
static <T> CompletableFutures.CompletableFutureKind<T> |
widen(java.util.concurrent.CompletionStage<T> completableFuture)
Convert a CompletableFuture to a simulated HigherKindedType that captures CompletableFuture nature
and CompletableFuture element data type separately.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, applyToEither, applyToEitherAsync, applyToEitherAsync, exceptionally, handle, handleAsync, handleAsync, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, whenComplete, whenCompleteAsync, whenCompleteAsync
static <T> CompletableFutures.CompletableFutureKind<T> completedFuture(T value)
value
- To encode inside a HKT encoded CompletableFuturestatic <U> CompletableFutures.CompletableFutureKind<U> supplyAsync(java.util.function.Supplier<U> supplier)
static <U> CompletableFutures.CompletableFutureKind<U> supplyAsync(java.util.function.Supplier<U> supplier, java.util.concurrent.Executor executor)
static CompletableFutures.CompletableFutureKind<java.lang.Void> runAsync(java.lang.Runnable runnable)
static CompletableFutures.CompletableFutureKind<java.lang.Void> runAsync(java.lang.Runnable runnable, java.util.concurrent.Executor executor)
static <T> CompletableFutures.CompletableFutureKind<T> widen(java.util.concurrent.CompletionStage<T> completableFuture)
CompletableFuture
- CompletableFuture to widen to a CompletableFutureKindstatic <T> CompletableFutures.CompletableFutureKind<T> fromFuture(Future<T> completableFuture)
static <T> CompletableFutures.CompletableFutureKind<T> narrowFuture(Higher<Witness.future,T> future)
static <T> CompletableFutures.CompletableFutureKind<T> narrow(Higher<Witness.completableFuture,T> future)
future
- HKT encoded list into a CompletableFutureKindstatic <T> java.util.concurrent.CompletableFuture<T> narrowK(Higher<Witness.completableFuture,T> completableFuture)
CompletableFuture
- Type Constructor to convert back into narrowed type