From 8405671049cc023b7d846690b51d1caf169d0a25 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 20 Jul 2023 20:03:56 +0200 Subject: [PATCH] Clarify event loop terminated error (#83) --- src/EventLoop/Internal/DriverSuspension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventLoop/Internal/DriverSuspension.php b/src/EventLoop/Internal/DriverSuspension.php index a1d9778..5f7c968 100644 --- a/src/EventLoop/Internal/DriverSuspension.php +++ b/src/EventLoop/Internal/DriverSuspension.php @@ -118,7 +118,7 @@ public function suspend(): mixed } } - throw new \Error('Event loop terminated without resuming the current suspension:' . $info); + throw new \Error('Event loop terminated without resuming the current suspension (the cause is either a fiber deadlock, or an incorrectly unreferenced/canceled watcher):' . $info); } return $result();