code: def update(self, value):
          
  
          value = int(value)
  
          with self.lock:
              self.value += value
docs: Update the current rate with the given value.
          The value must be an integer.