略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: event_base_loop

2024-12-21

event_base_loop

(PECL libevent >= 0.0.1)

event_base_loopHandle events

说明

event_base_loop ( resource $event_base [, int $flags = 0 ] ) : int

Starts 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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.event-base-loop.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3