PHP - Manual: event_base_loop
2024-12-21
(PECL libevent >= 0.0.1)
event_base_loop — Handle events
$event_base
[, int $flags
= 0
] ) : intStarts event loop for the specified event base.
event_base
Valid event base resource.
flags
Optional parameter, which can take any combination of
EVLOOP_ONCE
and EVLOOP_NONBLOCK
.
event_base_loop() returns 0 on success, -1 on error and 1 if no events were registered.
官方地址:https://www.php.net/manual/en/function.event-base-loop.php