MedallionShell icon indicating copy to clipboard operation
MedallionShell copied to clipboard

RunToEndAsync API

Open madelson opened this issue 6 years ago • 1 comments

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 avatar Feb 12 '19 01:02 madelson

@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?

Bartleby2718 avatar Feb 25 '24 00:02 Bartleby2718