ID EN
Threading

Timer

Python 3.11

Create a timer that will run function with arguments args and keyword arguments kwargs, after interval seconds have passed. If args is None (the default) then an empty list will be used. If kwargs is None (the default) then an empty dict will be used.

Syntax

PYTHON
class threading.Timer(interval, function, args=None, kwargs=None)