MedallionShell
MedallionShell copied to clipboard
RunToEndAsync API
A common point of confusion with the library is that Run() does not wait for the process to exit. RunToEnd() would both help in cases where you just want to one-off run something without piping. Also, its presence in the API would hopefully help clue users into the true nature of Run().
Need to think about the best name here. RunToCompletionAsync()? RunAndWaitForExitAsync()?
@madelson What should this return though--Task<Command>
?
If so, wouldn't that cause another confusion about the difference between its return type Task<Command>
and Command.Task
?