55 |
|
* Executor} or by default the {@link ForkJoinPool#commonPool()}, of a |
56 |
|
* function or action that will result in the completion of a new |
57 |
|
* CompletableFuture. To simplify monitoring, debugging, and tracking, |
58 |
< |
* all generated asynchronous tasks are instances of the tagging |
58 |
> |
* all generated asynchronous tasks are instances of the marker |
59 |
|
* interface {@link AsynchronousCompletionTask}. |
60 |
|
* |
61 |
|
* <p><em>jsr166e note: During transition, this class |
380 |
|
/* ------------- Async tasks -------------- */ |
381 |
|
|
382 |
|
/** |
383 |
< |
* A tagging interface identifying asynchronous tasks produced by |
383 |
> |
* A marker interface identifying asynchronous tasks produced by |
384 |
|
* {@code async} methods. This may be useful for monitoring, |
385 |
|
* debugging, and tracking asynchronous activities. |
386 |
|
*/ |
1788 |
|
* @param executor the executor to use for asynchronous execution |
1789 |
|
* @return the new CompletableFuture |
1790 |
|
*/ |
1791 |
– |
|
1791 |
|
public <U,V> CompletableFuture<V> thenCombineAsync(CompletableFuture<? extends U> other, |
1792 |
|
BiFun<? super T,? super U,? extends V> fn, |
1793 |
|
Executor executor) { |
2554 |
|
* |
2555 |
|
* @param fn the function to use to compute the value of the |
2556 |
|
* returned CompletableFuture |
2558 |
– |
|
2557 |
|
* @return the new CompletableFuture |
2558 |
|
*/ |
2559 |
|
public <U> CompletableFuture<U> handle(BiFun<? super T, Throwable, ? extends U> fn) { |