swoole_server->after

在指定的时间后执行函数,需要swoole-1.7.7以上版本。

swoole_server->after(int $after_time_ms, mixed $callback_function);

swoole_server::after函数是一个一次性定时器,执行完成后就会销毁。

$after_time_ms 最大不得超过 86400000
此方法是swoole_timer_after函数的别名

生命周期