[Twisted-Python] t.i.task.Cooperator & inlineCallbacks mashup

Phil Mayers p.mayers at imperial.ac.uk
Wed Nov 2 07:24:11 EDT 2011


I only just noticed today that if a generator passed to a 
CooperativeTask does:

   result = yield some_deferred()

...it doesn't work, because CooperativeTask doesn't .send() the result 
of the deferred bacn into the generator.

Is this intentional? If not, would that behaviour be desirable? It seems 
like it would be a useful pattern to me.



More information about the Twisted-Python mailing list