Java RunnableFuture 线程接口

源码展示

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();
}

Java RunnableFuture 线程接口

上一篇:Sanic十八:Sanic 扩展之sanic-openapi生成接口文档之入门使用


下一篇:java启动监听错误: org.springframework.web.context.ContextLoaderListener