Benjamin, sorry for providing you with an incorrect explanation.  Jean-Paul, thank you for correcting my broken understanding of callWhenRunning.<div><br></div><div>Is there a call which puts a function into the reactor&#39;s queue of tasks to be completed?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Jason</div><div><br><div class="gmail_quote">On Wed, Jan 12, 2011 at 10:26 AM,  <span dir="ltr">&lt;<a href="mailto:exarkun@twistedmatrix.com">exarkun@twistedmatrix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Although note that if the reactor is already running when you</div>
instantiate the factory, then callWhenRunning will immediately call the<br>
function you pass to it, as demonstrated by this transcript in which the<br>
reactor is already running:<br>
<br>
    &gt;&gt;&gt; def foo():<br>
    ...     print &#39;foo running&#39;<br>
    ...    &gt;&gt;&gt; from twisted.internet import reactor<br>
    &gt;&gt;&gt; reactor.callWhenRunning(foo)<br>
    foo running<br>
    &gt;&gt;&gt;<br>
Jean-Paul<br>
<div><div></div><div class="h5"><br></div></div></blockquote></div><br>-- <br>Jason Rennie<br>Research Scientist, ITA Software<br>617-714-2645<br><a href="http://www.itasoftware.com/">http://www.itasoftware.com/</a><br><br>

</div>