When reading bytes asynchronously from stdout
using asyncio.create_subprocess_exec
, the program has to be unbuffered.
1 | python3 -u <script_path> |
1 | # this can only make `print` into unbuffered |
When reading bytes asynchronously from stdout
using asyncio.create_subprocess_exec
, the program has to be unbuffered.
1 | python3 -u <script_path> |
1 | # this can only make `print` into unbuffered |