public void AwaitResponse()

in JetBrains.Profiler.SelfApi/src/Impl/ConsoleProfiler.cs [130:140]


    public void AwaitResponse(string command, int milliseconds)
    {
      var regex = BuildCommandRegex(command, ".*");
      if (WaitFor(regex, milliseconds) == null)
      {
        if (_process.HasExited)
          throw BuildException($"{_presentableName} has exited unexpectedly. See details below.");
        if(!IsInfiniteTimeout(milliseconds))
          throw BuildException($"The command {command} for {_presentableName} has not finished in the given time ({milliseconds} ms).");
      }
    }