Skip to content

Commit

Permalink
Sync amp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
amphp-bot committed Nov 7, 2024
1 parent b32a1cd commit ba33362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amp.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,15 @@ individual keys in the component array are preserved from the `iterable` passed

##### awaitAll

`Amp\Promise\awaitAll($iterable, $cancellation)` awaits all futures and returns their results as `[$errors, $values]` array.
`Amp\Future\awaitAll($iterable, $cancellation)` awaits all futures and returns their results as `[$errors, $values]` array.

##### awaitFirst

`Amp\Promise\awaitFirst($iterable, $cancellation)` unwraps the first completed `Future`, whether successfully completed or errored.
`Amp\Future\awaitFirst($iterable, $cancellation)` unwraps the first completed `Future`, whether successfully completed or errored.

##### awaitAny

`Amp\Promise\awaitAny($iterable, $cancellation)` unwraps the first successfully completed `Future`.
`Amp\Future\awaitAny($iterable, $cancellation)` unwraps the first successfully completed `Future`.

#### Future Creation

Expand Down

0 comments on commit ba33362

Please sign in to comment.