Swoole\Event::dispatchPerform a single event loop iteration Description
public static void Swoole\Event::dispatch()
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. Return ValuesNo return value. Examples
Example #1 Manual event loop control |