From 56ba17f0ecaf76ccb5462f2d5ba886b1bf796db8 Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 28 Mar 2021 22:32:58 -0500 Subject: [PATCH] Missed this suspension resume/throw --- lib/Internal/EmitSource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Internal/EmitSource.php b/lib/Internal/EmitSource.php index 7d8b6cd..3902045 100644 --- a/lib/Internal/EmitSource.php +++ b/lib/Internal/EmitSource.php @@ -434,9 +434,9 @@ final class EmitSource } if ($exception) { - Loop::queue(static fn() => $placeholder->throw($exception)); + $placeholder->throw($exception); } else { - Loop::queue(static fn() => $placeholder->resume(null)); + $placeholder->resume(null); } }