为什么java.util.concurrent.RunnableFuture有一个run()方法?
2022-09-02 13:01:32
当我浏览JDK 7时,我发现它有一个run方法。我想知道当接口中复制相同的运行方法签名时,它的意义是什么。java.util.concurrent.RunnableFuture<V>
Runnable
package java.util.concurrent;
public interface RunnableFuture<V> extends Runnable, Future<V> {
/**
* Sets this Future to the result of its computation
* unless it has been cancelled.
*/
void run();
}