src/Helper/ProcessHelper.php
public static function setProcessTitle(string $title): bool
    {
        if (PhpHelper::isMac()) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            return @cli_set_process_title($title);
        }

        return true;
    }
public static function setProcessTitle(string $title): bool
    {
        if (PhpHelper::isMac()) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            return @cli_set_process_title($title);
        }

        return true;
    }
设置当前进程名称

@param string $title 名称

@return bool