mitogen/tests/data/write_all_consumer.py

10 lines
174 B
Python
Raw Normal View History

2018-10-30 23:12:16 +00:00
#!/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)