jdk中future模式的实现

三个要点

1,需要实现callable接口

2,需要用FutureTask进行封装

3,需要用线程池进行调用

posted @ 2021-06-17 16:57  阿杜地带  阅读(91)  评论(0)    收藏  举报