Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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