ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/CompletionStage.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/CompletionStage.java (file contents):
Revision 1.40 by dl, Mon Sep 17 11:50:35 2018 UTC vs.
Revision 1.41 by jsr166, Mon Sep 17 14:18:15 2018 UTC

# Line 842 | Line 842 | public interface CompletionStage<T> {
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
# Line 863 | Line 863 | public interface CompletionStage<T> {
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
# Line 922 | Line 922 | public interface CompletionStage<T> {
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines