code: def reset(self):
          
          self.counter += 1
          local_counter = self.counter
  
          def timer_timeout():
              if self.counter == local_counter and self.running:
                  self.callback()
  
          self.loop.call_later(self.timeout, timer_timeout)
docs: Reset the timeout. Starts a new timer.