|
1 | 1 | # [](https://promisesaplus.com) Fidelity
|
2 | 2 |
|
3 | 3 | [](https://coveralls.io/github/bucharest-gold/fidelity?branch=master)
|
4 |
| -[](https://travis-ci.org/bucharest-gold/fidelity) |
5 |
| -[](https://snyk.io/test/npm/fidelity) |
| 4 | +[](https://travis-ci.org/bucharest-gold/fidelity) |
| 5 | +[](https://snyk.io/test/npm/fidelity) |
6 | 6 | [](https://david-dm.org/bucharest-gold/fidelity)
|
7 | 7 |
|
8 | 8 | [](https://npmjs.org/package/fidelity)
|
@@ -111,6 +111,24 @@ with the provided `value`.
|
111 | 111 | A static utility function that returns a promise which has been rejected
|
112 | 112 | with the provided `reason`.
|
113 | 113 |
|
| 114 | +See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/reject |
| 115 | + |
| 116 | +### Fidelity.all(iterable) |
| 117 | + |
| 118 | +A static utility function which returns a promise that resolves when all |
| 119 | +of the promises in the iterable argument have resolved, or rejects with |
| 120 | +the reason of the first passed promise that rejects. |
| 121 | + |
| 122 | +See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all |
| 123 | + |
| 124 | +### Fidelity.race(iterable) |
| 125 | + |
| 126 | +A static utility function which returns a promise that resolves or rejects as |
| 127 | +soon as one of the promises in the iterable resolves or rejects, with the value |
| 128 | +or reason from that promise. |
| 129 | + |
| 130 | +See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race |
| 131 | + |
114 | 132 | ### Fidelity.deferred()
|
115 | 133 |
|
116 | 134 | A static utility function that Creates and returns a `deferred` object.
|
|
0 commit comments