[Twisted-web] Having reactor run at the main thread make things harder for late adopters

Tzury Bar Yochay tzury.by at gmail.com
Tue Nov 4 22:59:32 EST 2008

>> At this stage the main problem I see is having transport.write will
>> have data transmitted immediately when called from another thread.
> When calling into Twisted from non-Twisted threads, use reactor.callFromThread.
> See <http://twistedmatrix.com/projects/core/documentation/howto/threading.html>.

I actually saw this reactor.callFromThread but weren't sure whether it
is a singelton i.e. I can use it in another module by simply importing
reactor and calling it and it will affect the same I called .run on in
another module. I checked it right now and it works.

thank you,
 - Tzury

More information about the Twisted-web mailing list