[Twisted-Python] Capture blocking calls?

Tommi Virtanen tv at twistedmatrix.com
Thu Jun 16 04:18:57 EDT 2005

Luc Stepniewski wrote:
> I've go tthe same difficulties here.  I'm trying to integrate into Twisted a 
> method (which comes from a python+C compiled module) that returns data. The 
> problem is that this method is blocking, so I can't integrate it easily in 
> Twisted.

Sounds like you want to run twisted as normal and just call
d = reactor.callInThread(bigUglyBlockingThing)
when you want more stuff from it.

More information about the Twisted-Python mailing list