php8.5
Home/ Manual/ event / eventbase/ EventBase::loop

EventBase::loop

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Dispatch pending events

Description

EventBase::loop([int $flags]): bool

Wait for events to become active, and run their callbacks.

Warning

Parameters

flags

Optional flags. One of EventBase::LOOP_* constants. See EventBase constants.

Return Values

Success

See Also

  • EventBase::dispatch

Source: reference/event/eventbase/loop.xml · from the official PHP manual (php/doc-en)