初始化代码
This commit is contained in:
23
vendor/swoole/ide-helper/output/swoole_lib/alias_ns.php
vendored
Normal file
23
vendor/swoole/ide-helper/output/swoole_lib/alias_ns.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Swoole\Coroutine {
|
||||
|
||||
function run(callable $fn, ...$args)
|
||||
{
|
||||
$s = new Scheduler();
|
||||
$s->add($fn, ...$args);
|
||||
return $s->start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
namespace Co {
|
||||
|
||||
if (SWOOLE_USE_SHORTNAME) {
|
||||
function run(callable $fn, ...$args)
|
||||
{
|
||||
return \Swoole\Coroutine\Run($fn, ...$args);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user