dotnet / dotnet/dotnet-api-docs
Mention at Process.WaitForExit's parameterless overload that async standard error stream handler is also awaited
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
Hi!
I am reading the following page:
https://learn.microsoft.com/en-us/dotnet/api/System.Diagnostics.Process.WaitForExit?view=net-8.0
And I noticed the following:
> This overload ensures that all processing has been completed, including the handling of asynchronous events for redirected standard output.
I think this is also true for the standard **error** stream, so it should be in the documentation as well.
If I'm correct, this is the source code for that:
https://github.com/dotnet/runtime/blob/v8.0.0/src/libraries/System.Diagnostics.Process/src/System/Diagnostics/Process.Windows.cs#L179
And it handles the error stream the same way as the output stream.
Contributor guide
Assessment
This issue has not been assessed yet.