6 Oct
2003
6 Oct
'03
10:26 p.m.
On Mon, 06 Oct 2003 23:05:11 -0400 Glyph Lefkowitz <glyph@twistedmatrix.com> wrote:
Andrew, can you add a bug to the tracker for this, and assign it to someone? :) It would also be good if it did handle Deferreds, but I'm a little sketchy on where the callback would go (I mean, you're in a thread because you're blocking already, right? but deferreds are to avoid blocking, so does that mean the callback runs in a thread or in the main loop?)
The callbacks all run the main thread, but the last one adds the result to a object that feeds it to the waiting thread. That is, the thread blocks until the Deferred has a result. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting