Last active
June 15, 2018 11:10
-
-
Save jersobh/06cad7527d07699b6a4f9f158cfbff60 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
streams = [] | |
stream = await asyncio.create_subprocess_exec( *args, stdin=asyncio.subprocess.PIPE, stdout=None, stderr=None, loop=loop, limit=None,) | |
streams.append(stream) | |
... later ... | |
if chunk is not None: | |
for stream in streams: | |
await stream.stdin.write(chunk) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment