<DIV>It isn't that I want to call a function with a particular frequency. Rather, </DIV>
<DIV>I want to call a function once per main loop. Further, when the function</DIV>
<DIV>is available to be called, I want to run with a timeout of 0 to further</DIV>
<DIV>increase the frequency of calls. LoopingCall still uses callLater which </DIV>
<DIV>simply can not deliver this type of service.</DIV>
<DIV>&nbsp;</DIV>
<DIV>My view on things is that, while blocking I/O is best put in another </DIV>
<DIV>thread, computations that can be broken into small pieces (putting</DIV>
<DIV>yield statements in every loop, for example) can run very nicely in the</DIV>
<DIV>background. Between each chunck of processing, you check for any</DIV>
<DIV>timer events and for I/O completions, of course. But you want to execute</DIV>
<DIV>these small chuncks AS FREQUENTLY AS POSSIBLE.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But like I said, I'm developing a new style of async programming. So</DIV>
<DIV>its bound to be something of a heresy. ;-)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Bill<BR><BR><B><I>Itamar Shtull-Trauring &lt;itamar@itamarst.org&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">The suggested way for doing highly frequent calls to scheduled events in<BR>twisted is twisted.internet.task.LoopingCall.</BLOCKQUOTE><p><font face=arial size=-1>
<a href="http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/" target="_blank">
<b>Yahoo! India Matrimony</a>:</b> Find your partner 
<a href="http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/community.php" target="_blank">online</a>.</font>