php8.5
Home/ Manual/ reference / ev/ Ev

This extension provides interface to libev library - a high performance full-featured event loop written in C.

Intro

This extension provides interface to libev library - a high performance full-featured event loop written in C.

Extension

Libev is an event loop: one registers interest in certain events (such as a file descriptor being readable or a timeout occurring), and it will manage these event sources and provide the program with events.

To do this, it must take more or less complete control over the process (or thread) by executing the event loop handler, and will then communicate events via a callback mechanism.

You register interest in certain events by registering so-called event watchers, and then hand it over to libev by starting the watcher.

For details refer to the documentation of libev.

Setup Examples Watchers Watcher-callbacks Periodic-modes Ev Evcheck Evchild Evembed Evfork Evidle Evio Evloop Evperiodic Evprepare Evsignal Evstat Evtimer Evwatcher

Source: reference/ev/book.xml · from the official PHP manual (php/doc-en)