[Twisted-Python] A problem with runUntilCurrent

Itamar Shtull-Trauring itamar at itamarst.org
Mon May 17 10:24:15 EDT 2004

On Mon, 2004-05-17 at 10:20, Christopher Armstrong wrote:

> No, callLater(0,) doesn't call the function synchronously, it calls it 
> in the next reactor iteration. i.e., not "*right* now", but "ASAP".

That's what it's *supposed* to do. But Glyph's code had a bug for the
following case: 

def infinite(): reactor.callLater(0, infinite)
reactor.callLater(0, infinite)

where it would just call infinite() over and over and over and over.

Itamar Shtull-Trauring    http://itamarst.org

More information about the Twisted-Python mailing list