https://gist.github.com/2412129
Coming from the Twisted world you often miss twisted.internet.task.Clock,
or reactor.callLater.
Johan Rydberg:
> Someone might find this interesting, or useful.
>
> https://gist.github.com/2412129
>
Line 71 looks like an endless recursion loop.
Test cases are useful. :-P
> Coming from the Twisted world you often miss twisted.internet.task.Clock,
> or reactor.callLater.
The code I'm writing right now needs both kinds of clock, unfortunately –
some delays may advance indiscriminately, but others are timeouts for
network communication. I have hacked the Twisted reactor emulator I'm using
to support that.
(Yes, I know I should put that into its own git archive and publish it …)
Not at all, it's calling reset which is a function passed in by
whatever created the class.