<html><body><br />Gábor Bernáth already answered your question, but I'd like to answer as specifically as possible for future readers who may discover this message.<br /><br />On 13 Jun, 06:21 pm, michele.petrazzo@unipex.it wrote:<br />&gt; &#160; &#160;reactor.call_in_main_thrad(callBack)<br /><br />This is spelled:<br /><br />&#160; &#160; reactor.callFromThread(callBack)<br /><br />&gt;reactor.callIntoThread(tid, funct, callBack)<br /><br />This is spelled:<br /><br />&#160; &#160; from twisted.internet.threads import deferToThread<br />&#160; &#160; deferToThread(funct).addCallback(callBack)<br /><br />&gt;Is this possible with twisted? (Does I'm dreaming?)<br /><br />This, and many other fun features of the reactor, can be discovered by reading the twisted.internet interface documentation, available here:<br /><br />http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.html<br /><br />You can read more specifically about threads here:<br /><br />http://twistedmatrix.com/documents/current/api/twisted.internet.interfaces.IReactorThreads.html<br /><br />I hope this proves useful to you!</body></html>