93 |
|
* Returns the "raw" internal exceptional completion of f, |
94 |
|
* without any additional wrapping with CompletionException. |
95 |
|
*/ |
96 |
< |
<U> Throwable exceptionalCompletion(CompletableFuture<U> f) { |
97 |
< |
// handle (and whenComplete) can distinguish between "direct" |
98 |
< |
// and "wrapped" exceptional completion |
99 |
< |
return f.handle((U u, Throwable t) -> t).join(); |
96 |
> |
Throwable exceptionalCompletion(CompletableFuture<?> f) { |
97 |
> |
// handle (and whenComplete and exceptionally) can distinguish |
98 |
> |
// between "direct" and "wrapped" exceptional completion |
99 |
> |
return f.handle((u, t) -> t).join(); |
100 |
|
} |
101 |
|
|
102 |
|
void checkCompletedExceptionally(CompletableFuture<?> f, |