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
7 package java.util.concurrent;
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.
17 * @param <V> The result type returned by this Future's <tt>get</tt> method
19 public interface RunnableFuture<V> extends Runnable, Future<V> {
21 * Sets this Future to the result of its computation
22 * unless it has been cancelled.