PHP 8.4.0 RC4 available for testing

Swoole\Timer::after

(PECL swoole >= 1.9.0)

Swoole\Timer::afterTrigger a callback function after a period of time.

Descripción

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

Trigger a callback function after a period of time.

Parámetros

after_time_ms

callback

Valores devueltos

add a note

User Contributed Notes 1 note

up
0
Mohamed Ramadan
2 years ago
when using timer after must use

swoole_event_wait();
To Top