Skip to content

Commit

Permalink
Merge pull request #2576 from suaxi/main
Browse files Browse the repository at this point in the history
fix:补充《Java并发常见面试题总结(下)》中缺失的文字描述
  • Loading branch information
Snailclimb authored Jan 1, 2025
2 parents c5be500 + f5ffecd commit fddf33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/concurrent/java-concurrent-questions-03.md
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ bothCompleted.thenRunAsync(() -> System.out.println("T3 is executing after T1 an
ThreadUtil.sleep(3000);
```

通过 `CompletableFuture` 的 `allOf()`这个静态方法来并行运行 T1T2T1
通过 `CompletableFuture` 的 `allOf()` 这个静态方法来并行运行 T1T2T1 T2 都完成后,再执行 T3

### ⭐️使用 CompletableFuture,有一个任务失败,如何处理异常?

Expand Down

0 comments on commit fddf33a

Please sign in to comment.