equivalent of setinterval python

Solutions on MaxInterview for equivalent of setinterval python by the best coders in the world

showing results for - "equivalent of setinterval python"
Lina
31 Jul 2017
1import threading
2
3def set_interval(func, sec):
4    def func_wrapper():
5        set_interval(func, sec)
6        func()
7    t = threading.Timer(sec, func_wrapper)
8    t.start()
9    return t