摘要: 1.runAsync、supplyAsync、get、join:开启异步任务,获取结果。 // runAsync:没有返回值 CompletableFuture<Void> future = CompletableFuture.runAsync(() -> { System.out.println( 阅读全文
posted @ 2024-04-28 20:07 Yfeil 阅读(13) 评论(0) 推荐(0) 编辑