Registry / async / react-event-loop

react-event-loop

JSON →
library1.6.0phppackagistunverified

ReactPHP's core reactor event loop that libraries can use for evented I/O.

composer require react/event-loop
INSTALL
IMPORT
SIG · REACT-EVENT-LOOP
R
react-event-loop
asyncphpv1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Loop
use React\EventLoop\Loop;

Run a timer-based event loop

use React\EventLoop\Loop; Loop::addTimer(1, function () { echo "Hello after 1 second\n"; }); Loop::run();
Debug
Known issues
gotchaRequires ext-event or ext-libev for best performance
fix
Install php-event or php-libev extension
affects: >=1.0
Upgrade
Version history
1.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
25
OpenAI (training)
2
Resources
react-event-loop — pip install react-event-loop · libregistry