when using timer after must use
swoole_event_wait();
PHP - Manual: Swoole\Timer::after
2024-12-22
(PECL swoole >= 1.9.0)
Swoole\Timer::after — Trigger a callback function after a period of time.
Trigger a callback function after a period of time.
after_time_ms
callback