PHP - Manual: event_base_loopbreak
2024-12-20
(PECL libevent >= 0.0.1)
event_base_loopbreak — Abort event loop
$event_base
) : boolAbort the active event loop immediately. The behaviour is similar to break statement.
event_base
Valid event base resource.
event_base_loopbreak() returns TRUE
on success or FALSE
on error.
官方地址:https://www.php.net/manual/en/function.event-base-loopbreak.php