code: def remove_handler(self, handler):
          
          with self.lock:
              if handler in self.handlers:
                  self.handlers.remove(handler)
                  self._update_handlers()
docs: Remove a handler object.
  
          :Parameters:
              - `handler`: the object to remove