Skip to content

Commit 5c7206f

Browse files
authored
Update completablefuture-intro.md
1 parent edaeba4 commit 5c7206f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/java/concurrent/completablefuture-intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ assertEquals("hello!world!nice!", completableFuture.get());
418418

419419
**`thenCompose()``thenCombine()` 有什么区别呢?**
420420

421-
- `thenCompose()` 可以两个 `CompletableFuture` 对象,并将前一个任务的返回结果作为下一个任务的参数,它们之间存在着先后顺序。
421+
- `thenCompose()` 可以链接两个 `CompletableFuture` 对象,并将前一个任务的返回结果作为下一个任务的参数,它们之间存在着先后顺序。
422422
- `thenCombine()` 会在两个任务都执行完成后,把两个任务的结果合并。两个任务是并行执行的,它们之间并没有先后依赖顺序。
423423

424424
### 并行运行多个 CompletableFuture

0 commit comments

Comments
 (0)