2449 |
|
* then the returned CompletableFuture also does so, with a |
2450 |
|
* CompletionException holding this exception as its cause. |
2451 |
|
* |
2452 |
< |
* @param fn the function returning a new CompletableFuture. |
2452 |
> |
* @param fn the function returning a new CompletableFuture |
2453 |
|
* @return the CompletableFuture, that {@code isDone()} upon |
2454 |
|
* return if completed by the given function, or an exception |
2455 |
< |
* occurs. |
2455 |
> |
* occurs |
2456 |
|
*/ |
2457 |
|
public <U> CompletableFuture<U> thenCompose(Fun<? super T, |
2458 |
|
CompletableFuture<U>> fn) { |