1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #2576 from suaxi/main

fix:补充《Java并发常见面试题总结(下)》中缺失的文字描述
This commit is contained in:
Guide 2025-01-01 20:25:30 +08:00 committed by GitHub
commit fddf33a02a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -914,7 +914,7 @@ bothCompleted.thenRunAsync(() -> System.out.println("T3 is executing after T1 an
ThreadUtil.sleep(3000);
```
通过 `CompletableFuture``allOf()`这个静态方法来并行运行 T1 和 T2 。当 T1 和
通过 `CompletableFuture``allOf()` 这个静态方法来并行运行 T1 和 T2当 T1 和 T2 都完成后,再执行 T3。
### ⭐️使用 CompletableFuture有一个任务失败如何处理异常