历史版本0:swoole_timer_clear
使用定时器ID来删除定时器。
bool swoole_timer_clear(int $timer_id)
- $timer_id,定时器ID,调用
swoole_timer_tick
、swoole_timer_after
后会返回一个整数的ID - swoole_timer_clear不能用于清除其他进程的定时器,只作用于当前进程
© Swoole.com 2008 - 2023 备案号:苏ICP备19021875号-1 | 苏公网安备 32058302002209号 | 版权声明
官方QQ群:810919826 开发组邮件列表: team@swoole.com 当前Swoole扩展版本:swoole-SWOOLE_VERSION