B
berklee just berklee
When you call a timer, like in the documentation:
def hello():
print "hello, world"
t = Timer(30.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed
Does the thread get destroyed after the task is done? I mean, if I set up an
ongoing monitor and use timers to watch over jobs, do I have to worry about
thread management?
def hello():
print "hello, world"
t = Timer(30.0, hello)
t.start() # after 30 seconds, "hello, world" will be printed
Does the thread get destroyed after the task is done? I mean, if I set up an
ongoing monitor and use timers to watch over jobs, do I have to worry about
thread management?