The method Process.BeginOutputReadLine() reads the output asynchronously on a thread other than the GUI's thread. I am trying to find a way to use async and await in my C# code.
     p = new Process();
     p.StartInfo.UseShellExecute = false;
     p.StartInfo.CreateNoWindow = true;
     p.StartInfo.RedirectStandardOutput = true;
     p.StartInfo.FileName = "mplayer.exe";
     p.StartInfo.Arguments = @"C:\movie.mp4";
     p.OutputDataReceived += P_OutputDataReceived;
     p.Start();
Is there any way to update using an async method in Process class?
 
     
    