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.23 by dl, Mon Feb 9 00:23:55 2004 UTC vs.
Revision 1.24 by jsr166, Tue Apr 26 01:17:18 2005 UTC

# Line 41 | Line 41 | package java.util.concurrent;
41   * }
42   * </pre>
43   *
44 < * The {@link FutureTask} class is an implementation of <tt>Future</tt> that
45 < * implements <tt>Runnable</tt>, and so may be executed by an <tt>Executor</tt>.
44 > * The {@link FutureTask} class is an implementation of <tt>Future</tt> that
45 > * implements <tt>Runnable</tt>, and so may be executed by an <tt>Executor</tt>.
46   * For example, the above construction with <tt>submit</tt> could be replaced by:
47   * <pre>
48   *     FutureTask&lt;String&gt; future =
# Line 88 | Line 88 | public interface Future<V> {
88      boolean isCancelled();
89  
90      /**
91 <     * Returns <tt>true</tt> if this task completed.  
91 >     * Returns <tt>true</tt> if this task completed.
92       *
93       * Completion may be due to normal termination, an exception, or
94       * cancellation -- in all of these cases, this method will return
95       * <tt>true</tt>.
96 <     *
96 >     *
97       * @return <tt>true</tt> if this task completed.
98       */
99      boolean isDone();
# Line 128 | Line 128 | public interface Future<V> {
128      V get(long timeout, TimeUnit unit)
129          throws InterruptedException, ExecutionException, TimeoutException;
130   }
131
132
133

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines