code: def msg(self, *args, **kwargs):
          "Only execute callback when interval is reached."
          if self.timestamp is None or self._interval_reached():
              self.callback(*args, **kwargs)
              self.reset(f msg(self, *args, **kwargs):
          "Only execute callback when interval is reached."
          if self.timestamp is None or self._interval_reached():
              self.callback(*args, **kwargs)
              self.reset()
docs: Only execute callback when interval is reached.