mirror of
https://github.com/danog/amp.git
synced 2024-12-11 17:09:40 +01:00
Add @throws CancelledException to Future::await
This commit is contained in:
parent
f2bd72a020
commit
fc9debb885
@ -18,7 +18,7 @@ final class Future
|
|||||||
* @template Tv
|
* @template Tv
|
||||||
*
|
*
|
||||||
* @param iterable<Tk, Future<Tv>> $futures
|
* @param iterable<Tk, Future<Tv>> $futures
|
||||||
* @param Cancellation|null $cancellation Optional cancellation.
|
* @param Cancellation|null $cancellation Optional cancellation.
|
||||||
*
|
*
|
||||||
* @return iterable<Tk, Future<Tv>>
|
* @return iterable<Tk, Future<Tv>>
|
||||||
*/
|
*/
|
||||||
@ -211,6 +211,8 @@ final class Future
|
|||||||
* Throws an exception if the operation fails.
|
* Throws an exception if the operation fails.
|
||||||
*
|
*
|
||||||
* @return T
|
* @return T
|
||||||
|
*
|
||||||
|
* @throws CancelledException
|
||||||
*/
|
*/
|
||||||
public function await(?Cancellation $cancellation = null): mixed
|
public function await(?Cancellation $cancellation = null): mixed
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user