Hi, I’m working on a test system which will either be based on curio or at least inspired by it.
Under OSX I’ve noticed that when
KqueueSelector isn’t given any files it returns immediately. The result is that code such as this:
from curio import run, sleep async def just_sleep(): await sleep(20) run(just_sleep())
uses 100% CPU whilst it’s running. Passing
run() ‘fixes’ this.
I think I’d argue that this is a bug, possibly in selectors, but I’m not sure. I’d be very interested to hear opinions on this.