php8.5
Home/ Manual/ ev / ev/ Ev::iteration

Ev::iteration

PHP function Edit on GitHub ✎

(PECL ev >= 0.2.0)

Return the number of times the default event loop has polled for new events

Description

Ev::iteration(): int

Return the number of times the event loop has polled for new events. Sometimes useful as a generation counter.

Parameters Parameters

Return Values

Returns number of polls of the default event loop.

See Also

  • Ev::depth

Source: reference/ev/ev/iteration.xml · from the official PHP manual (php/doc-en)