RedSpider1 / concurrent

这是RedSpider社区成员原创与维护的Java多线程系列文章。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Callable接口没有取消任务的功能

SealedJn opened this issue · comments

章节
第2章
2.2.2 Future接口

相关截图或文字
深入浅出java多线程错误

修正意见
应该修改为:
就使用Future来代替Runnable

和Runnable对应的应该是Callable哈。Future只是它的返回值。