There was an error while loading. Please reload this page.
1 parent c1f0f9c commit fffaf16Copy full SHA for fffaf16
src/Coroutine/Context.php
@@ -7,7 +7,7 @@
7
8
class Context
9
{
10
- protected const MAX_RECURSE_CONTEXT_ID = 50;
+ protected const MAX_RECURSE_COROUTINE_ID = 50;
11
12
/**
13
* The app containers in different coroutine environment.
@@ -102,7 +102,7 @@ public static function getCoroutineId(): int
102
}
103
104
$counter = 0;
105
- while (($topCoroutineId = Coroutine::getPcid($currentId)) !== -1 && $counter <= self::MAX_RECURSE_CONTEXT_ID) {
+ while (($topCoroutineId = Coroutine::getPcid($currentId)) !== -1 && $counter <= self::MAX_RECURSE_COROUTINE_ID) {
106
$currentId = $topCoroutineId;
107
$counter++;
108
0 commit comments