[Twisted-Python] IPushProducer - medium volume streaming

Christopher Armstrong radix at twistedmatrix.com
Sun Oct 28 10:50:38 EDT 2007

On 10/28/07, Rutt, Benjamin <Benjamin.Rutt at gs.com> wrote:
> So using deferToThread, inside my thread, when I have a result to write
> to the client, I call callFromThread to schedule a write in the reactor
> loop.

No, if you're using deferToThread, the way you give the result back to
the mainloop is by returning the value from the function. Then that
result gets fired on the Deferred that deferToThread created.

Christopher Armstrong
International Man of Twistery

More information about the Twisted-Python mailing list