(No version information available, might only be in Git)
Swoole\Event::dispatch — Perform a single event loop iteration
The purpose of this function is to maintain compatibility with some frameworks. When a framework internally manages its own reactor loop, using Event::wait would allow Swoole's underlying layer to retain control, preventing the framework from taking over execution.
No return value.
Пример #1 Manual event loop control
<?php
while (true) {
Swoole\Event::dispatch();
}