function reschedule_cb_10s ($watcher, $now) {
return $now + 10.;
}
//PHP7.0+çæ¬ä¸æ¯æreschedule_cb模å¼
// PHP5.6æµè¯éè¿
$w5 = new EvPeriodic(0.0, 0.0, "reschedule_cb_10s", function ($w, $revents) {
echo "w5:enter:", time(), PHP_EOL;
// sleep(3);
echo "w5:end:", time(), PHP_EOL;
});
Ev::run();