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

Comparing jsr166/src/main/java/util/concurrent/RunnableFuture.java (file contents):
Revision 1.1 by peierls, Tue May 17 04:17:05 2005 UTC vs.
Revision 1.2 by dl, Mon May 23 11:29:35 2005 UTC

# Line 7 | Line 7
7   package java.util.concurrent;
8  
9   /**
10 < * A runnable that is also a future.
10 > * A {@link Future} that is {@link Runnable}. Successful execution of
11 > * the <tt>run</tt> method causes completion of the <tt>Future</tt>
12 > * and allows access to its results.
13   * @see FutureTask
14   * @see Executor
15   * @since 1.6
# Line 15 | Line 17 | package java.util.concurrent;
17   * @param <V> The result type returned by this Future's <tt>get</tt> method
18   */
19   public interface RunnableFuture<V> extends Runnable, Future<V> {
20 +    /**
21 +     * Sets this Future to the result of its computation
22 +     * unless it has been cancelled.
23 +     */
24 +    void run();
25   }
26  
27  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines