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 03642bf commit eae4babCopy full SHA for eae4bab
scheduler.c
@@ -1032,6 +1032,14 @@ bool async_scheduler_coroutine_enqueue(zend_coroutine_t *coroutine)
1032
}
1033
1034
ZEND_ASYNC_INCREASE_COROUTINE_COUNT;
1035
+
1036
+ // Notify scope that a new coroutine has been enqueued
1037
+ zend_async_scope_t *scope = coroutine->scope;
1038
+ scope->after_coroutine_enqueue(coroutine, scope);
1039
+ if (UNEXPECTED(EG(exception))) {
1040
+ coroutine->waker->status = ZEND_ASYNC_WAKER_IGNORED;
1041
+ return false;
1042
+ }
1043
1044
1045
// Add to resumed_coroutines queue for event cleanup
0 commit comments