We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102c398 commit 41bf8fcCopy full SHA for 41bf8fc
tests/gc/013-gc_coroutine_circular_finally.phpt renamed to tests/coroutine/036-coroutine_gc_circular_finally.phpt
@@ -1,11 +1,12 @@
1
--TEST--
2
-GC 013: Circular references between coroutines and finally handlers
+Coroutine: Circular references between coroutines and finally handlers
3
--FILE--
4
<?php
5
6
use function Async\spawn;
7
use function Async\suspend;
8
use function Async\currentCoroutine;
9
+use function Async\await;
10
11
echo "start\n";
12
@@ -26,7 +27,7 @@ $circular_finally_coroutine = spawn(function() {
26
27
return "circular_result";
28
});
29
-suspend();
30
+await($circular_finally_coroutine);
31
$result = $circular_finally_coroutine->getResult();
32
echo "circular result: $result\n";
33
0 commit comments