[Twisted-Python] callLater

Christopher Armstrong radix at twistedmatrix.com
Thu Jan 17 16:33:10 EST 2008

On Jan 17, 2008 4:09 PM, Eduardo Matus <ematus at gmail.com> wrote:
> hey all....
> is there a way to add tasks  and then run the timer in callLater from the
> reactor class??
> like sched module in python...
> because if I want to call 2 different functions at the "same" time..
> reactor.callLater(3,f)
> reactor.callLater(3,g)
> the 'g' function will be called 'n' seconds after the 'f' method....

No it won't. They'll both be called at (almost) the same time. If
you're actually seeing g being called 3 seconds after f, there's
probably something else wrong in your application. Please post a
minimal complete example showing your problem.

Christopher Armstrong
International Man of Twistery

More information about the Twisted-Python mailing list