def exit(self):
        self._set_has_exit(True)
        app.platform_event_loop.notify()
Safely exit the event loop at the end of the current iteration.
dataset/ETHPy150Open ardekantur/pyglet/pyglet/app/base.py/EventLoop.exit