Skip to content

Commit

Permalink
Merge e410057 into 21b667c
Browse files Browse the repository at this point in the history
  • Loading branch information
seregazhuk committed Jan 17, 2018
2 parents 21b667c + e410057 commit b4a788e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Expand Up @@ -420,7 +420,8 @@ $promise = React\Promise\race(array $promisesOrValues);
```

Initiates a competitive race that allows one winner. Returns a promise which is
resolved in the same way the first settled promise resolves.
resolved in the same way the first settled promise settles. If the settled promise
resolves the resulting promise resolves with its resolution value, otherwise it resolves with a rejection reason.

The returned promise will become **infinitely pending** if `$promisesOrValues`
contains 0 items.
Expand All @@ -447,10 +448,10 @@ if `$promisesOrValues` contains 0 items.
$promise = React\Promise\some(array $promisesOrValues, integer $howMany);
```

Returns a promise that will resolve when `$howMany` of the supplied items in
Returns a promise that will resolve when at least `$howMany` of the supplied items in
`$promisesOrValues` resolve. The resolution value of the returned promise
will be an array of length `$howMany` containing the resolution values of the
triggering items.
will be an array of length `$howMany` containing the resolution values of
`$howMany` resolved promises that were resolved first.

The returned promise will reject if it becomes impossible for `$howMany` items
to resolve (that is, when `(count($promisesOrValues) - $howMany) + 1` items
Expand Down

0 comments on commit b4a788e

Please sign in to comment.