From 379177aba93518e2df6d626677cbbdc48cc0d8ae Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 16 Jan 2022 17:46:44 +0100 Subject: [PATCH] Revert "Add @throws CancelledException to Future::await" This reverts commit fc9debb885ec3685400dd830ceb80ba8903c7709. --- src/Future.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Future.php b/src/Future.php index 2522fb47..fa123e38 100644 --- a/src/Future.php +++ b/src/Future.php @@ -18,7 +18,7 @@ final class Future * @template Tv * * @param iterable> $futures - * @param Cancellation|null $cancellation Optional cancellation. + * @param Cancellation|null $cancellation Optional cancellation. * * @return iterable> */ @@ -213,8 +213,6 @@ public function finally(\Closure $finally): self * Throws an exception if the operation fails. * * @return T - * - * @throws CancelledException */ public function await(?Cancellation $cancellation = null): mixed {