PHP - Manual: 简介
2024-11-14
This extension provides interface to » libev library - a high performance full-featured event loop written in C.
注意: 此扩展在 Windows 平台上不可用。
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