Skip to content

Commit

Permalink
fix typo, chapter 3, line 1486
Browse files Browse the repository at this point in the history
  • Loading branch information
vincecampanale committed May 6, 2017
1 parent 6109cfe commit 037b406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion async & performance/ch3.md
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ While native ES6 Promises come with built-in `Promise.all([ .. ])` and `Promise.

* `none([ .. ])` is like `all([ .. ])`, but fulfillments and rejections are transposed. All Promises need to be rejected -- rejections become the fulfillment values and vice versa.
* `any([ .. ])` is like `all([ .. ])`, but it ignores any rejections, so only one needs to fulfill instead of *all* of them.
* `first([ .. ])` is a like a race with `any([ .. ])`, which is that it ignores any rejections and fulfills as soon as the first Promise fulfills.
* `first([ .. ])` is like a race with `any([ .. ])`, which is that it ignores any rejections and fulfills as soon as the first Promise fulfills.
* `last([ .. ])` is like `first([ .. ])`, but only the latest fulfillment wins.

Some Promise abstraction libraries provide these, but you could also define them yourself using the mechanics of Promises, `race([ .. ])` and `all([ .. ])`.
Expand Down

0 comments on commit 037b406

Please sign in to comment.