MainLoop.run

void run()

Runs a main loop until [glib.main_loop.MainLoop.quit] is called on the loop. If this is called for the thread of the loop's #GMainContext, it will process events from the loop, otherwise it will simply wait.