略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: parallel\Events::poll

2026-09-29

parallel\Events::poll

(0.9.0)

parallel\Events::poll — Polling

说明

public parallel\Events::poll(): ?parallel\Events\Event

Shall poll for the next event

返回值

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

警告

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

+添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/parallel-events.poll.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3