public static function setTitle(string $title): bool
    {
        if (!$title || 'Darwin' === \PHP_OS) {
            return false;
        }

        if (\function_exists('cli_set_process_title')) {
            \cli_set_process_title($title);
        } elseif (\function_exists('setproctitle')) {
            \setproctitle($title);
        }

        if ($error = \error_get_last()) {
            throw new \RuntimeException($error['message']);
        }

        return false;
    }