首页 > 编程语言 > 详细

Java RunnableFuture 线程接口

时间:2021-09-07 15:30:12      阅读:28      评论:0      收藏:0      [点我收藏+]

源码展示

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 线程接口

原文:https://www.cnblogs.com/feiqiangsheng/p/15237675.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!