Skip to content

Instantly share code, notes, and snippets.

@jersobh
Last active June 15, 2018 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jersobh/06cad7527d07699b6a4f9f158cfbff60 to your computer and use it in GitHub Desktop.
Save jersobh/06cad7527d07699b6a4f9f158cfbff60 to your computer and use it in GitHub Desktop.
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