windows环境下,用Timer 不执行
$worker->onWorkerStart=function($cur_worker){
Timer::add(1,function() use ($last_count){
global $last_count;
$send_data=array(
'action'=>'tongji',
'content'=>"当前在线的人数:{$last_count}"
);
$send_str=json_encode($send_data,true);
sendAll($send_str);
});
};