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.28 by jsr166, Sat Jan 23 21:37:12 2016 UTC vs.
Revision 1.29 by jsr166, Sun Jan 24 00:26:00 2016 UTC

# Line 29 | Line 29 | import java.util.function.Function;
29   * <pre> {@code
30   * stage.thenApply(x -> square(x))
31   *      .thenAccept(x -> System.out.print(x))
32 < *      .thenRun(() -> System.out.println())}</pre>
32 > *      .thenRun(() -> System.out.println());}</pre>
33   *
34   * An additional form (<em>compose</em>) allows the construction of
35   * computation pipelines from functions returning completion stages.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines