Skip to content

Commit bd74a3c

Browse files
CopilotEdmondDantes
andcommitted
Clarify comment in test - suspend yields control to scheduler
Co-authored-by: EdmondDantes <1571649+EdmondDantes@users.noreply.github.com>
1 parent ea75a0b commit bd74a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/coroutine/037-coroutine_getTrace_suspended.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ $parentCoroutine = spawn(function() use (&$childCoroutine) {
4444
echo "Child trace is null\n";
4545
}
4646

47-
// Resume to let child finish
47+
// Yield control to allow scheduler to resume the child coroutine
4848
suspend();
4949

5050
// After completion, trace should be null

0 commit comments

Comments
 (0)