MainLoop.quit
void quit() nothrowStops a #GMainLoop from running. Any calls to glib.main_loop.MainLoop.run for the loop will return.
Note that sources that have already been dispatched when glib.main_loop.MainLoop.quit is called will still be executed.