Swoole\Event->dispatch

Declaration

<?php
Swoole\Event->dispatch()

Parameters

Return

success

if success, it returns TRUE, otherwise it returns FALSE.

Description

Waiting for I/O events only once. Compare with wait, it calls epoll_wait only once.

Example

<?php
while(true) {
    Swoole\Event::dispatch();
}