[Python-ideas] async: feedback on EventLoop API

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Dec 17 23:00:35 CET 2012


Guido van Rossum wrote:
> (*) Most event loops I've seen use e.g. 30 seconds or 1 hour as
> infinity, with the idea that if somehow a race condition added
> something to the ready queue just as we went to sleep, and there's no
> I/O at all, the system will recover eventually.

I don't see how such a race condition can occur in a
cooperative multitasking system. There are no true
interrupts that can cause something to happen when
you're not expecting it. So I'd say let infinity
really mean infinity.

-- 
Greg



More information about the Python-ideas mailing list