<?php
Swoole\Server->on('timer', callback $callback)
The event name
callback function
if success, it returns TRUE, otherwise it returns FALSE.
Executue the callback function when receving Timer
ticks.
A Timer
can be added to the server with $server->addTimer
method.
<?php
function (Swoole\Server $server, int $interval) {
}