ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/RunnableFuture.java
Revision: 1.4
Committed: Wed Aug 24 05:01:01 2005 UTC (18 years, 9 months ago) by jsr166
Branch: MAIN
Changes since 1.3: +1 -0 lines
Log Message:
workaround for 6280605

File Contents

# Content
1 /*
2 * Written by Doug Lea with assistance from members of JCP JSR-166
3 * Expert Group and released to the public domain, as explained at
4 * http://creativecommons.org/licenses/publicdomain
5 */
6
7 package java.util.concurrent;
8 import java.util.concurrent.*; // for javadoc (till 6280605 is fixed)
9
10 /**
11 * A {@link Future} that is {@link Runnable}. Successful execution of
12 * the <tt>run</tt> method causes completion of the <tt>Future</tt>
13 * and allows access to its results.
14 * @see FutureTask
15 * @see Executor
16 * @since 1.6
17 * @author Doug Lea
18 * @param <V> The result type returned by this Future's <tt>get</tt> method
19 */
20 public interface RunnableFuture<V> extends Runnable, Future<V> {
21 /**
22 * Sets this Future to the result of its computation
23 * unless it has been cancelled.
24 */
25 void run();
26 }