暂存
This commit is contained in:
+36
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user