Created
August 17, 2012 03:34
-
-
Save kylegibson/3375704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyev | |
def run_every_5_seconds(watcher, revents): | |
print 'foo' | |
loop = pyev.default_loop() | |
run_every_5_seconds_loop = loop.timer(0, 5, run_every_5_seconds) | |
run_every_5_seconds_loop.start() | |
loop.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment