Benjamin, sorry for providing you with an incorrect explanation.  Jean-Paul,
thank you for correcting my broken understanding of callWhenRunning.

Is there a call which puts a function into the reactor's queue of tasks to
be completed?

Thanks,

Jason

On Wed, Jan 12, 2011 at 10:26 AM, <exar...@twistedmatrix.com> wrote:

> Although note that if the reactor is already running when you
> instantiate the factory, then callWhenRunning will immediately call the
> function you pass to it, as demonstrated by this transcript in which the
> reactor is already running:
>
>    >>> def foo():
>    ...     print 'foo running'
>    ...    >>> from twisted.internet import reactor
>    >>> reactor.callWhenRunning(foo)
>    foo running
>    >>>
> Jean-Paul
>
>
-- 
Jason Rennie
Research Scientist, ITA Software
617-714-2645
http://www.itasoftware.com/
_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to