| 程序包 | 说明 |
|---|---|
| org.skfiy.util.v8 |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletableFuture<U> |
CompletableFuture.applyToEither(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of either this or the other given
CompletableFuture's results when either complete.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn)
Creates and returns a CompletableFuture that is completed asynchronously
using the
ForkJoinPool.commonPool() with the result of the given
function of either this or the other given CompletableFuture's results
when either complete. |
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletableFuture<? extends T> other,
CompletableFuture.Fun<? super T,U> fn,
Executor executor)
Creates and returns a CompletableFuture that is completed asynchronously
using the given executor with the result of the given function of either
this or the other given CompletableFuture's results when either complete.
|
CompletableFuture<T> |
CompletableFuture.exceptionally(CompletableFuture.Fun<Throwable,? extends T> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of the exception triggering this
CompletableFuture's completion when it completes exceptionally;
Otherwise, if this CompletableFuture completes normally, then the
returned CompletableFuture also completes normally with the same value.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApply(CompletableFuture.Fun<? super T,? extends U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of this CompletableFuture.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(CompletableFuture.Fun<? super T,? extends U> fn)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with the result of the given
function of this CompletableFuture. |
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(CompletableFuture.Fun<? super T,? extends U> fn,
Executor executor)
Creates and returns a CompletableFuture that is asynchronously completed
using the given executor with the result of the given function of this
CompletableFuture.
|
<U> CompletableFuture<U> |
CompletableFuture.thenCompose(CompletableFuture.Fun<? super T,CompletableFuture<U>> fn)
Returns a CompletableFuture (or an equivalent one) produced by the given
function of the result of this CompletableFuture when completed.
|
Copyright © 2013 The Skfiy Open Association. All Rights Reserved.