Php/docs/parallel-events.poll

来自菜鸟教程
跳转至:导航、​搜索

parallel\Events::poll

(0.9.0)

parallel\Events::pollPolling


说明

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

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

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