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

Comparing jsr166/src/main/java/util/concurrent/CompletableFuture.java (file contents):
Revision 1.138 by jsr166, Sun Jan 4 09:15:11 2015 UTC vs.
Revision 1.139 by dl, Tue Jan 6 16:14:25 2015 UTC

# Line 939 | Line 939 | public class CompletableFuture<T> implem
939              }
940              try {
941                  @SuppressWarnings("unchecked") T t = (T) r;
942 <                return f.apply(t).toCompletableFuture();
942 >                return new CompletableFuture<V>(
943 >                    encodeRelay(f.apply(t).toCompletableFuture().result));
944              } catch (Throwable ex) {
945                  return new CompletableFuture<V>(encodeThrowable(ex));
946              }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines