This commit is contained in:
2020-09-04 00:41:33 +08:00
parent 622071256e
commit 46f9de1f6a
141 changed files with 105 additions and 73 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace Snowflake\Process;
use Exception;
use Snowflake\Snowflake;
use Swoole\Timer;
/**
* Class Logfilemonitoring
*/
class Leafleting extends Process
{
/**
* @param \Swoole\Process $process
* @return mixed|void
* @throws Exception
*/
public function onHandler(\Swoole\Process $process)
{
Timer::tick(1000, function () use ($process) {
var_dump($process->read());
});
}
}