event_add
event_add
(PECL libevent >= 0.0.1)
event_add — Add an event to the set of monitored events
Description
bool event_add ( resource $event [, int $timeout = -1 ] )
event
_add() schedules the execution of the event
when the event
specified in event
_set() occurs or in at least the time specified by the timeout
argument. If timeout
was not specified, not timeout
is set. The event
must be already initalized by event
_set() and event
_base_set() functions. If the event
already has a timeout
set, it is replaced by the new one.
Parameters
event
Valid event resource.
timeout
Optional timeout (in microseconds).
Return Values
event_add() returns TRUE
on success or FALSE
on error.
event_base_free →
© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.