摘要: 1. Future 异步计算结果,提供了一些方法来检验任务是否完成,get()都是阻塞的。 1.1 Future接口方法: // 取消任务 boolean cancel(boolean mayInterruptIfRunning); // 判断任务是否已取消 boolean isCancelled( 阅读全文
posted @ 2023-04-05 21:16 colorfulworld 阅读(14) 评论(0) 推荐(0) 编辑