Message: 2
Date: Tue, 20 Dec 2011 19:14:10 -
From: exar...@twistedmatrix.com
Subject: Re: [Twisted-Python] deferred generators in inline callbacks
To: Twisted general discussion
Message-ID:
<20111220191410.2164.1501005671.divmod.xquotient.42@localhost.localdomain>
Content-Type
On 06:24 pm, alex.k...@gmail.com wrote:
>Hi.
>
>I have a question about inline callbacks usage.
>
>Let's assume I have an iterator that works synchronously. I want to
>wrap this generator to work asynchronously in threads:
>
>def some_generator():
>cursor = make_iterator() # cursor's 'next' met