PHP » GoLang |
login |
register |
about
|
GoLang EvPeriodic::__construct
request it (407)
GoLang replacement for PHP's EvPeriodic::__construct
[edit | history]
EvPeriodic::__construct(PECL ev >= 0.2.0) EvPeriodic::__construct — Constructs EvPeriodic watcher object Description
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. Parameters
Return ValuesReturns EvPeriodic object on success. ExamplesExample #1 Periodic timer. Use reschedule callback
<?php Example #2 Periodic timer. Tick every 10.5 seconds starting at now
<?php Example #3 Hourly watcher
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|