Skip to content

Commit 172df41

Browse files
committed
#19: awaitAny() - coroutine throws exception - test stabilization
1 parent 34efc05 commit 172df41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/await/007-awaitAny_exception.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ awaitAny() - coroutine throws exception
66
use function Async\spawn;
77
use function Async\awaitAny;
88
use function Async\delay;
9+
use function Async\suspend;
910

1011
echo "start\n";
1112

@@ -15,7 +16,7 @@ $coroutines = [
1516
return "first";
1617
}),
1718
spawn(function() {
18-
delay(20);
19+
suspend();
1920
throw new RuntimeException("test exception");
2021
}),
2122
];

0 commit comments

Comments
 (0)