Event::timer
(PECL event >= 1.2.6-beta)
Event::timer — Constructs timer event object
Parameters
-
base
-
The associated event base object.
-
cb
-
The signal event callback. See
Event callbacks.
-
arg
-
Custom data. If specified, it will be passed to the callback when event
triggers.
Return Values
Returns Event object on success. Otherwise false.