作者 邓超

go

@@ -38,7 +38,7 @@ class SwGo { @@ -38,7 +38,7 @@ class SwGo {
38 go(function (\Closure $run,...$param){ 38 go(function (\Closure $run,...$param){
39 self::$runNumber++; 39 self::$runNumber++;
40 $end = null; 40 $end = null;
41 - if(empty($param[0]) && $param[0] instanceof \Closure){ 41 + if(!empty($param[0]) && $param[0] instanceof \Closure){
42 $end = $param[0]; 42 $end = $param[0];
43 unset($param[0]); 43 unset($param[0]);
44 $param = array_values($param); 44 $param = array_values($param);