1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 09:57:51 +01:00

Add @throws CancelledException to Future::await

This commit is contained in:
Niklas Keller 2021-12-23 01:02:16 +01:00
parent f2bd72a020
commit fc9debb885

View File

@ -18,7 +18,7 @@ final class Future
* @template Tv
*
* @param iterable<Tk, Future<Tv>> $futures
* @param Cancellation|null $cancellation Optional cancellation.
* @param Cancellation|null $cancellation Optional cancellation.
*
* @return iterable<Tk, Future<Tv>>
*/
@ -211,6 +211,8 @@ final class Future
* Throws an exception if the operation fails.
*
* @return T
*
* @throws CancelledException
*/
public function await(?Cancellation $cancellation = null): mixed
{