News for hackers. Stuff that matters.
Re:Unfortunate Python by beza1e1 on Tuesday December 20, 2011 @08:59AM (#3373418)
What is meant by "timers"? Something like "execute this function in 5 minutes"?

My bot [0] has an idle function, which is called every 30 seconds and does background jobs like checking git repos for new commits. The 30 seconds are the timeout of the select/poll call asyncore does internally, which can of course be changed. Based on this the bot got a cron-like timing infrastructure.

[0] https://github.com/beza1e1/zsnippets/blob/master/zsnippets/i...

There are no comments on this comment yet.