dotnet / dotnet/dotnet-api-docs

Mention at Process.WaitForExit's parameterless overload that async standard error stream handler is also awaited

Open
#9,962 2 comments 0 reactions 0 assignees View on GitHub
area-System.Diagnostics.Process Pri3
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.