def notify_update(self):
    """Notify any update events that there was an update."""
    with self._lock:
      for event in self._update_events:
        event.set()
      self._update_events.clear()
Notify any update events that there was an update.