PHP Velho Oeste 2024

event_base_loopexit

(PECL libevent >= 0.0.1)

event_base_loopexitあとでループを終了する

説明

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

指定した時間が経過した時点でのイベントループの処理を正常に終えたあとに、 イベントをブロックせずにループを終了します。

パラメータ

event_base

有効なイベントベースリソース。

timeout

オプションのタイムアウト (マイクロ秒)。

返り値

event_base_loopexit() は、成功した場合に TRUE、エラー時に FALSE を返します。

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