def METHOD_NAME(self) -> None:
    """
    Start the event loop.  Exit the loop when any callback raises
    an exception.  If ExitMainLoop is raised, exit cleanly.
    """
    try:
        self._did_something = True
        while True:
            with contextlib.suppress(InterruptedError):
                self._loop()
    except ExitMainLoop:
        pass