[Twisted-Python] client connecting to 2 servers (nonsimultaneously)

Glyph Lefkowitz glyph at twistedmatrix.com
Wed Jan 12 09:32:55 MST 2011


On Wed, Jan 12, 2011 at 10:52 AM, Jason Rennie <jrennie at gmail.com> wrote:

> 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?
>

The reactor doesn't have a queue of tasks to be completed.  It has sets of
various event sources, which it executes in no particular order.

Scheduling a timed event with callLater(0,...) might do what you want,
though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20110112/5d2959bd/attachment.html>


More information about the Twisted-Python mailing list