gatewayworker在events的onWorkerStart回调中如何获取到worker进程,避免多进程多个定时器并发启动的问题
问题代码 class Events{public static function onWorkerStart(){ Timer::add(1, function(){ //echo "timer:".time()."\n"; list($m...
问题代码 class Events{public static function onWorkerStart(){ Timer::add(1, function(){ //echo "timer:".time()."\n"; list($m...