Skip to content

Commit 1b16f9d

Browse files
authored
Merge pull request #2640 from ZYinMD/patch-17
slightly improve clarity of Promise.all()
2 parents 3661393 + d43bdd2 commit 1b16f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/11-async/05-promise-api/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let promise = Promise.all([...promises...]);
1818

1919
`Promise.all` takes an array of promises (it technically can be any iterable, but is usually an array) and returns a new promise.
2020

21-
The new promise resolves when all listed promises are settled, and the array of their results becomes its result.
21+
The new promise resolves when all listed promises are resolved, and the array of their results becomes its result.
2222

2323
For instance, the `Promise.all` below settles after 3 seconds, and then its result is an array `[1, 2, 3]`:
2424

0 commit comments

Comments
 (0)