php8.5
Home/ Manual/ parallel / events/ parallel\Events::poll

parallel\Events::poll

PHP function Edit on GitHub ✎

(0.9.0)

Polling

Description

parallel\Events::poll(): parallel\Events\Event|null

Shall poll for the next event

Return Values

Should there be no targets remaining, null shall be returned

Should this be a non-blocking loop, and blocking would occur, null shall be returned

Otherwise, the parallel\Events\Event returned describes the event.

Exceptions

Warning

Shall throw parallel\Events\Error\Timeout if timeout is used and reached.

Source: reference/parallel/parallel/events/poll.xml · from the official PHP manual (php/doc-en)