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.
Hyperf\Coroutine\Coroutine::list()
1 parent 19c16ec commit 223f0f9Copy full SHA for 223f0f9
composer.json
@@ -19,7 +19,7 @@
19
"php": ">=8.1",
20
"hyperf/context": "~3.1.0",
21
"hyperf/contract": "~3.1.0",
22
- "hyperf/engine": "^2.0"
+ "hyperf/engine": "^2.13.0"
23
},
24
"autoload": {
25
"psr-4": {
src/Coroutine.php
@@ -119,6 +119,14 @@ public static function exists(int $id): bool
119
return Co::exists($id);
120
}
121
122
+ /**
123
+ * @return iterable<int>
124
+ */
125
+ public static function list(): iterable
126
+ {
127
+ return Co::list();
128
+ }
129
+
130
private static function printLog(Throwable $throwable): void
131
{
132
if (ApplicationContext::hasContainer()) {
0 commit comments