[Python-ideas] The async API of the future: Twisted and Deferreds

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Oct 14 07:16:10 CEST 2012


Devin Jeanpierre wrote:
> Presumably
> generator coroutines work by yielding deferreds and being called back
> when the future resolves (deferred fires).

That's one way to go about it, but it's not the only way.
See here for my take on how it might work:

http://www.cosc.canterbury.ac.nz/greg.ewing/python/generators/yf_current/Examples/Scheduler/scheduler.txt

-- 
Greg



More information about the Python-ideas mailing list