作者 邓超

go

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