<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Terminus">LoopingCall - periodically call a function.<br>
TimerService - wrapper for the twisted service with LoopingCall
functionality.<br>
<br>
I use LoopingCall and write my own wrapper for the service, <br>
but TimerService is really more universal for it.<br>
<br>
More useful - create twisted Service and Plugins for your application, <br>
use component architecture this interface adaptation. <br>
In that variant you will construct TimerService from scratch =).<br>
<br>
</font><br>
Jean-Paul Calderone wrote:
<blockquote
cite="mid:20071003143106.8162.650730627.divmod.quotient.17467@ohm"
type="cite">On Tue, 2 Oct 2007 20:05:43 -0400, Saptarshi Guha
<a class="moz-txt-link-rfc2396E" href="mailto:sguha@purdue.edu"><sguha@purdue.edu></a> wrote:
<br>
<blockquote type="cite">I did read the source that
<br>
a)LoopingCall is implemented via calllater's
<br>
b)internet.TimerService is a big wrapper around loopingcall
<br>
<br>
I've probably simplified it too much but what then is the difference?
<br>
thank you
<br>
</blockquote>
<br>
You haven't really simplified too much. They both provide the same
<br>
functionality. LoopingCall provides it with one API, TimerService
<br>
provides it with a different API. Of the two, LoopingCall is the
<br>
more commonly useful.
<br>
<br>
Jean-Paul
<br>
<br>
_______________________________________________
<br>
Twisted-Python mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
+---------------------------------------+
|~-~-~-~-~~-~-~-~-~-~-~-~~-~-~-~-~-~-~-~|
| SeNd CaKe IcE, hElLo MuMmY... |
|_______________________________________|
</pre>
</body>
</html>