摘要: CompletableFuture 提供了丰富的方法来异步处理任务。 CompletableFuture.runAsync 用于执行没有返回值的任务,常用于不需要返回结果的业务 void public static CompletableFuture<Void> runAsync(Runnable 阅读全文
posted @ 2024-09-11 18:44 山阴路的秋天 阅读(7) 评论(0) 推荐(0) 编辑