Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

13
vendor/swoole/examples/coroutine/sleep.php vendored Executable file
View File

@ -0,0 +1,13 @@
<?php
$server = new Swoole\Http\Server("127.0.0.1", 9502, SWOOLE_BASE);
$server->set([
'worker_num' => 1,
]);
$server->on('Request', function ($request, $response) {
Swoole\Coroutine::sleep(0.2);
$response->end('Test End');
});
$server->start();