code: def clear(self):
          
          with self.__bnd_lock:
              self.__bnd_listeners = []
  
          with self.__svc_lock:
              self.__svc_listeners.clear()
  
          with self.__fw_lock:
              self.__fw_listeners = []
docs: Clears the event dispatcher