How can I make this timer run forever?
Posted
by zjm1126
on Stack Overflow
See other posts from Stack Overflow
or by zjm1126
Published on 2010-04-24T01:54:02Z
Indexed on
2010/04/24
2:13 UTC
Read the original article
Hit count: 295
from threading import Timer
def hello():
print "hello, world"
t = Timer(30.0, hello)
t.start()
This code only fires the timer once.
How can I make the timer run forever?
Thanks,
© Stack Overflow or respective owner