EvPeriodic::__constructConstructs EvPeriodic watcher object Beschreibung
public
EvPeriodic::__construct
(
double
$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. Parameter-Liste
RückgabewerteReturns EvPeriodic object on success. BeispieleBeispiel #1 Periodic timer. Use reschedule callback
<?phpBeispiel #2 Periodic timer. Tick every 10.5 seconds starting at now
<?phpBeispiel #3 Hourly watcher
<?phpSiehe auch
|