mitogen/tests/data/write_all_consumer.py

10 lines
174 B
Python
Executable File

#!/usr/bin/env python
# I consume 65535 bytes every 10ms, for testing mitogen.core.write_all()
import os
import time
while True:
os.read(0, 65535)
time.sleep(0.01)