[Twisted-Python] callLater
Drew Smathers
drew.smathers at gmail.com
Thu Jan 17 14:42:34 MST 2008
On Jan 17, 2008 4:09 PM, Eduardo Matus <ematus at gmail.com> wrote:
>
> 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....
f and g will both get called ~3 seconds after the call to callLater - the
order in which they get called should be considered arbitrary. What do you
mean by g will be called N seconds after f?
If you're tying to implement cron-like functionality this easy enough (at
least if persistency is not a concern) with simple time calculations and
your own code which uses callLater.
>
>
> thks
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
--
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
d.p.s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20080117/92bcb5bc/attachment.html>
More information about the Twisted-Python
mailing list