src/Helper/PhpHelper.php
public static function call($cb, array $args = [])
    {
        if (version_compare(SWOOLE_VERSION, '4.0', '>=')) {
            $ret = call_user_func_array($cb, $args);
        } else {
            $ret = \Swoole\Coroutine::call_user_func_array($cb, $args);
        }

        return $ret;
    }
public static function call($cb, array $args = [])
    {
        if (version_compare(SWOOLE_VERSION, '4.0', '>=')) {
            $ret = call_user_func_array($cb, $args);
        } else {
            $ret = \Swoole\Coroutine::call_user_func_array($cb, $args);
        }

        return $ret;
    }
调用

@param mixed $cb   callback函数，多种格式
@param array $args 参数

@return mixed