title: How to stream stdout/stderr from a child process using asyncio, and obtain its exit code after?
body: <p>Under Python 3.4 on Windows, I need to stream data written to stdout/stderr by a child process, i.e. receive its output as it occurs, using the <a href="https://docs.python.org/3/library/asyncio.html" rel="noreferrer">asyncio</a> framework introduced in Python 3.4. I also have to determine the program's exit code afterwards. How can I do this?</p>