摘要: 使用CompletableFuture替代Thread+Runnable解决Thread+Runnable没有返回值、串行化和组合任务问题 1、CompletableFuture.runAsync 异步没有返回值需要传入一个线程池 public static ExecutorService exec 阅读全文
posted @ 2024-03-11 10:13 李文学 阅读(116) 评论(0) 推荐(0)