[Twisted-Python] Some things I've learned: safer callbacks, better t.p.context

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Oct 19 18:07:59 MDT 2016


> On Oct 19, 2016, at 4:43 PM, Amber Hawkie Brown <hawkowl at atleastfornow.net> wrote:
> 
> One thing that I have still not figured out is how Futures (which are tightly tied to an event loop) will possibly ever work over multiple event loops. I think since you can't really chain them, this is less of a problem, but Deferreds like to absorb other Deferreds and make one big one, which would make the tight coupling problematic if you wanted to use two event loops (like, say, a GTK one and an IOCP one on Windows).
> 

I've never seen this as a problem, because "multiple event loops" implicitly means "multiple threads"; and you really kinda need to call back a Deferred on the same event loop where it was originated.  When would you want to do this?

-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20161019/7a35bdb4/attachment-0002.html>


More information about the Twisted-Python mailing list