Fix #202: periodic yield when running callbacks
Make sure run_callback() (and thus sleep(0)) does not starve CPU. After some number of callbacks (1000), let the event loop run.
Showing
greentest/test__sleep0.py
0 → 100644
Please register or sign in to comment