[Twisted-Python] LoopingCall at a non-idling reactor

Jean-Paul Calderone exarkun at divmod.com
Sat Jul 18 16:10:44 EDT 2009


On Sat, 18 Jul 2009 23:33:51 +0400 (MSD), Ilya Etingof <ilya at glas.net> wrote:
>
>Dear Twisters,
>
>I can't get Twisted reactor calling my function in a more or less
>periodic fashion with the LoopingCall mechanics.
>
>With select()-based reactor, the LoopingCall object seems to call back my
>timer function only on select() timeout. If I/O pace does not allow
>select() to time out, LoopingCall never calls my function.
>
>How do I implement a "timer" function what would work regardless of the
>rate of I/O events?
>

Are you using threads?

Jean-Paul



More information about the Twisted-Python mailing list