<?php /** * Created by PhpStorm. * User: Ty_Ro * Date: 2019/1/31 * Time: 16:51 */ //循环执行 定时器 swoole_timer_tick(2000,function ($time_id) { echo "执行 $time_id \n"; }); //单次执行 swoole_timer_after(3000,function (){ echo "3000 后执行 \n"; });
swoole之定时器
猜你喜欢
转载自blog.csdn.net/qq_40876291/article/details/86717014
今日推荐
周排行