Files
kiri-core/System/Process/Leafleting.php
T

30 lines
409 B
PHP
Raw Normal View History

2020-08-31 01:27:08 +08:00
<?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)
{
2020-09-03 00:58:41 +08:00
Timer::tick(1000, function () use ($process) {
2020-08-31 01:27:08 +08:00
var_dump($process->read());
2020-09-03 00:58:41 +08:00
});
2020-08-31 01:27:08 +08:00
}
}