PHP Velho Oeste 2024

event_base_loopexit

(PECL libevent >= 0.0.1)

event_base_loopexitSale del bucle después de un tiempo

Descripción

event_base_loopexit ( resource $event_base [, int $timeout = -1 ] ) : bool

La siguiente iteración del bucle después de cumplido el tiempo se completará normalmente, entonces saldrá del bucle sin bloquear, en espera de otros eventos.

Parámetros

event_base

Base de eventos.

timeout

Parámetro opcional de timeout (en microsegundos).

Valores devueltos

event_base_loopexit() devuelve TRUE en caso de éxito o FALSE en caso de error.

add a note add a note

User Contributed Notes 1 note

up
0
jille at hexon dot cx
13 years ago
The timeout (if >= 0) is in microseconds.
To Top