A helper to wait for stdout and stderr asynchronous output to stop after Process.destroy has been called.
stdout
stderr
Delays the current coroutine until the Stdio.Pipe stops producing output.