842 |
|
(Function<Throwable, ? extends T> fn) { |
843 |
|
return toCompletableFuture().exceptionallyAsync(fn); |
844 |
|
} |
845 |
< |
|
845 |
> |
|
846 |
|
/** |
847 |
|
* Returns a new CompletionStage that, when this stage completes |
848 |
|
* exceptionally, is executed with this stage's exception as the |
863 |
|
public default CompletionStage<T> exceptionallyAsync |
864 |
|
(Function<Throwable, ? extends T> fn, Executor executor) { |
865 |
|
return toCompletableFuture().exceptionallyAsync(fn, executor); |
866 |
< |
} |
867 |
< |
|
866 |
> |
} |
867 |
> |
|
868 |
|
/** |
869 |
|
* Returns a new CompletionStage that, when this stage completes |
870 |
|
* exceptionally, is composed using the results of the supplied |
922 |
|
Executor executor) { |
923 |
|
return toCompletableFuture().exceptionallyComposeAsync(fn, executor); |
924 |
|
} |
925 |
< |
|
925 |
> |
|
926 |
|
/** |
927 |
|
* Returns a {@link CompletableFuture} maintaining the same |
928 |
|
* completion properties as this stage. If this stage is already a |