Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

equivalent of setInterval python

import threading

def set_interval(func, sec):
    def func_wrapper():
        set_interval(func, sec)
        func()
    t = threading.Timer(sec, func_wrapper)
    t.start()
    return t
 
PREVIOUS NEXT
Tagged: #equivalent #setInterval #python
ADD COMMENT
Topic
Name
1+9 =