PHP Conference Japan 2024

Swoole\Timer::after

(PECL swoole >= 1.9.0)

Swoole\Timer::after在一段時間後觸發回呼函式。

說明

public static Swoole\Timer::after(int $after_time_ms, callable $callback): void

在一段時間後觸發回呼函式。

參數

after_time_ms

callback

回傳值

新增筆記

使用者貢獻的筆記 1 則筆記

Mohamed Ramadan
2 年前
當使用 timer after 時必須使用

swoole_event_wait();
To Top