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

Comparing jsr166/src/main/java/util/concurrent/Future.java (file contents):
Revision 1.20 by jozart, Tue Dec 16 13:11:46 2003 UTC vs.
Revision 1.21 by dl, Fri Dec 19 14:42:25 2003 UTC

# Line 16 | Line 16 | package java.util.concurrent;
16   * <tt>cancel</tt> method.  Additional methods are provided to
17   * determine if the task completed normally or was cancelled. Once a
18   * computation has completed, the computation cannot be cancelled.
19 + * If you would like to use a <tt>Future</tt> for the sake
20 + * of cancellability but not provide a usable result, you can
21 + * declare types of the form <tt>Future&lt;?&gt;</tt> and
22 + * return <tt>null</tt> as a result of the underlying task.
23   *
24   * <p>
25   * <b>Sample Usage</b> (Note that the following classes are all

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines