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:
parent
f2bd72a020
commit
fc9debb885
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user