mirror of
https://github.com/Cian-H/I-Form_Server_Node_Deployer.git
synced 2025-12-22 22:22:02 +00:00
11 lines
239 B
Python
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) |