From f5ffecd541124f5593e0d274f76b77c6527ef6ab Mon Sep 17 00:00:00 2001 From: Suaxi <51893835+suaxi@users.noreply.github.com> Date: Wed, 1 Jan 2025 12:15:51 +0800 Subject: [PATCH] =?UTF-8?q?[docs=20update]=E8=A1=A5=E5=85=85=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/java/concurrent/java-concurrent-questions-03.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java/concurrent/java-concurrent-questions-03.md b/docs/java/concurrent/java-concurrent-questions-03.md index 6e376bbfc5d..91e7650eb79 100644 --- a/docs/java/concurrent/java-concurrent-questions-03.md +++ b/docs/java/concurrent/java-concurrent-questions-03.md @@ -916,7 +916,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,有一个任务失败,如何处理异常?