源码展示
package java.util.concurrent;
/**
* A Future that is Runnable. Successful execution of
* the run method causes completion of the Future
* and allows access to its results.
*/
public interface RunnableFuture<V> extends Runnable, Future<V> {
/**
* Sets this Future to the result of its computation
* unless it has been cancelled.
*/
void run();
}