def __init__(self, task = None, interval = None, delay = None):
        """
        Creates new instance of the timer and sets its values.

        :param task: (optional) a Notifiable object or callback function to call when timer is triggered.

        :param interval: (optional) an interval to trigger timer in milliseconds.

        :param delay: (optional) a delay before the first triggering in milliseconds.
        """
        self._lock = Lock()
        self.task = task
        self.delay = delay
        self.interval = interval
        self.started = False
def __init__ ( self , task = None , interval = None , delay = None ) : self . _lock = Lock ( ) self . task = task self . delay = delay self . interval = interval self . started = False
Creates new instance of the timer and sets its values.

        :param task: (optional) a Notifiable object or callback function to call when timer is triggered.

        :param interval: (optional) an interval to trigger timer in milliseconds.

        :param delay: (optional) a delay before the first triggering in milliseconds.