« Swoole\Event::del
Swoole\Event::isset »

Swoole\Event::dispatch

(No version information available, might only be in Git)

Swoole\Event::dispatch — Perform a single event loop iteration

説明

public static function Swoole\Event::dispatch(): void

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();
}

関連キーワード:
Swoole   Event   loop   event   dispatch   Perform   single   iteration   framework   control   isset   information   available   static   maintain   compatibility   frameworks   internally   manages   reactor   using   wait   allow   underlying   layer
関連する関数・ページ:
swoole-event.wait   swoole-event.isset   swoole-event.cycle   swoole-event.defer   swoole-event.add   swoole-event.del