EvLoop::run

(PECL ev >= 0.2.0) Begin checking for events and calling callbacks for the loop public void EvLoop::run ([ int $flags = 0 ] ) Begin checking for events and calling callbacks for the current event loop. Returns when a callback calls Ev::stop() method, or the flags are nonzero(in which case the return value is true) or when there are no active watchers which reference the loop( EvWatcher::keepalive() is TRUE), in which ca

EvLoop::resume

(PECL ev >= 0.2.0) Resume previously suspended default event loop public void EvLoop::resume ( void ) EvLoop::suspend() and EvLoop::resume() methods suspend and resume a loop correspondingly. Returns: No value is returned. See also: EvLoop::suspend() - Ev::resume() -

EvLoop::prepare

(PECL ev >= 0.2.0) Creates EvPrepare watcher object associated with the current event loop instance final public EvPrepare EvLoop::prepare ( callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Creates EvPrepare watcher object associated with the current event loop instance Returns: Returns EvPrepare object on success

EvLoop::periodic

(PECL ev >= 0.2.0) Creates EvPeriodic watcher object associated with the current event loop instance final public EvPeriodic EvLoop::periodic ( double $offset , double $interval , callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Creates EvPeriodic watcher object associated with the current event loop instance Returns: Returns EvPeriodic object on success.

EvLoop::nowUpdate

(PECL ev >= 0.2.0) Establishes the current time by querying the kernel, updating the time returned by EvLoop::now in the progress. public void EvLoop::nowUpdate ( void ) Establishes the current time by querying the kernel, updating the time returned by EvLoop::now() in the progress. This is a costly operation and is usually done automatically within EvLoop::run() . Returns: No value is returne

EvLoop::now

(PECL ev >= 0.2.0) Returns the current "event loop time" public double EvLoop::now ( void ) Returns the current "event loop time", which is the time the event loop received events and started processing them. This timestamp does not change as long as callbacks are being processed, and this is also the base time used for relative timers. You can treat it as the timestamp of the event occurring(or more correctly, libev find

EvLoop::loopFork

(PECL ev >= 0.2.0) Must be called after a fork public void EvLoop::loopFork ( void ) Must be called after a fork in the child, before entering or continuing the event loop. An alternative is to use Ev::FLAG_FORKCHECK which calls this function automatically, at some performance loss (refer to the » libev documentation ). Returns: No value is returned.

EvLoop::io

(PECL ev >= 0.2.0) Create EvIo watcher object associated with the current event loop instance final public EvIo EvLoop::io ( mixed $fd , int $events , callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Create EvIo watcher object associated with the current event loop instance. Returns: Returns EvIo object on success.

EvLoop::invokePending

(PECL ev >= 0.2.0) Invoke all pending watchers while resetting their pending state public void EvLoop::invokePending ( void ) Invoke all pending watchers while resetting their pending state. Returns: No value is returned.

EvLoop::idle

(PECL ev >= 0.2.0) Creates EvIdle watcher object associated with the current event loop instance final public EvIdle EvLoop::idle ( callable $callback [, mixed $data = NULL [, int $priority = 0 ]] ) Creates EvIdle watcher object associated with the current event loop instance Returns: Returns EvIdle object on success. See also