Files
kiri-core/p.php
T

18 lines
298 B
PHP
Raw Normal View History

2022-01-09 03:50:38 +08:00
<?php
2022-06-16 17:38:23 +08:00
use Swoole\Runtime;
use Swoole\Coroutine\Http\Server;
2022-01-09 03:50:38 +08:00
2022-06-16 17:38:23 +08:00
Runtime::enableCoroutine(true);
\Co\run(function () {
Swoole\Coroutine::create(function () {
var_dump(1);
});
$server = new Server('0.0.0.0',9501);
$server->handle('/', function () {
});
$server->start();
});