EvPeriodic::__constructConstructs EvPeriodic watcher object 説明public
EvPeriodic::__construct(
float $offset
,string $interval
,callable $reschedule_cb
,callable $callback
,mixed $data
= null
,int $priority
= 0
) Constructs EvPeriodic watcher object and starts it automatically. EvPeriodic::createStopped method creates stopped periodic watcher. パラメータ
例例1 Periodic timer. Use reschedule callback
例2 Periodic timer. Tick every 10.5 seconds starting at now
例3 Hourly watcher
参考
|