Skip to content

Commit c69b1e6

Browse files
authored
Merge pull request #324 from timkraut/patch-2
Fix typo
2 parents 6373e3a + 11a11b2 commit c69b1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/promise.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ The reason why this function was simpler is because the "`loadFile`(async) + `JS
438438
### Parallel control flow
439439
We have seen how trivial doing a serial sequence of async tasks is with promises. It is simply a matter of chaining `then` calls.
440440

441-
However you might potentially want to run a series of async tasks and then do something with the results of all of these tasks. `Promise` provides a static `Promise.all` function that you can use to wait for `n` number of promises to complete. You provide it with an array of `n` promises and it gives you array of `n` resolved values. Below we show Chaining as well as Parallel:
441+
However you might potentially want to run a series of async tasks and then do something with the results of all of these tasks. `Promise` provides a static `Promise.all` function that you can use to wait for `n` number of promises to complete. You provide it with an array of `n` promises and it gives you an array of `n` resolved values. Below we show Chaining as well as Parallel:
442442

443443
```ts
444444
// an async function to simulate loading an item from some server

0 commit comments

Comments
 (0)