Files
I-Form_Server_Node_Deployer/client_stdout.py
2023-10-26 17:29:42 +01:00

11 lines
239 B
Python

import asyncio
import sys
async def stdout_pipe(client):
events = client.events(decode=True)
while True:
for event in events:
sys.stdout.write(event)
sys.stdout.flush()
await asyncio.sleep(0.1)