ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jdk7/java/util/concurrent/RunnableFuture.java
Revision: 1.2
Committed: Wed Jan 16 01:39:37 2013 UTC (11 years, 4 months ago) by jsr166
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Log Message:
<tt> -> {@code

File Contents

# User Rev Content
1 dl 1.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/publicdomain/zero/1.0/
5     */
6    
7     package java.util.concurrent;
8    
9     /**
10     * A {@link Future} that is {@link Runnable}. Successful execution of
11 jsr166 1.2 * the {@code run} method causes completion of the {@code Future}
12 dl 1.1 * and allows access to its results.
13     * @see FutureTask
14     * @see Executor
15     * @since 1.6
16     * @author Doug Lea
17 jsr166 1.2 * @param <V> The result type returned by this Future's {@code get} method
18 dl 1.1 */
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     }