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

Itamar Turner-Trauring itamar at itamarst.org
Wed Nov 2 08:39:17 EDT 2011

On Wed, 2011-11-02 at 11:24 +0000, Phil Mayers wrote:
> 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.

Could you give an example snippet? I don't really understand the
question, sorry.

More information about the Twisted-Python mailing list