| 程序包 | 说明 |
|---|---|
| org.skfiy.util.v8 |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletableFuture<U> |
CompletableFuture.handle(CompletableFuture.BiFun<? super T,Throwable,? extends U> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of the result and exception of this
CompletableFuture's completion when it completes.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombine(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is completed with the result
of the given function of this and the other given CompletableFuture's
results when both complete.
|
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> fn)
Creates and returns a CompletableFuture that is asynchronously completed
using the
ForkJoinPool.commonPool() with the result of the given
function of this and the other given CompletableFuture's results when
both complete. |
<U,V> CompletableFuture<V> |
CompletableFuture.thenCombineAsync(CompletableFuture<? extends U> other,
CompletableFuture.BiFun<? super T,? super U,? extends V> 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
and the other given CompletableFuture's results when both complete.
|
Copyright © 2013 The Skfiy Open Association. All Rights Reserved.