code: def iter_monitors(self):
          
  
          for conn_string, events in self._monitors.items():
              for event, handlers in events.items():
                  for handler in handlers:
                      yield (conn_string, event, handler)
docs: Iterate over all defined (conn_string, event, monitor) tuples.