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/process/alarm.php vendored Executable file
View File

@ -0,0 +1,13 @@
<?php
swoole_process::signal(SIGALRM, function ()
{
static $i = 0;
echo "#{$i}\talarm\n";
$i++;
if ($i > 20)
{
swoole_process::alarm(-1);
}
});
swoole_process::alarm(100 * 1000);