This commit is contained in:
2026-05-28 20:19:28 +08:00
commit 070fad058f
124 changed files with 22713 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace Swow;
class Coroutine
{
public function resume(mixed ...$args): mixed
{
// Stub for PHPStorm
return null;
}
public static function getCurrent(): static
{
// Stub for PHPStorm
return new Coroutine;
}
public static function yield (mixed ...$args) : mixed
{
// Stub for PHPStorm
return null;
}
public function getId() : int
{
// Stub for PHPStorm
return 0;
}
public static function run(callable $callable , mixed ... $args): static
{
// Stub for PHPStorm
return new Coroutine;
}
}