GLib.MainLoop.prototype.run

function run(): void {
    // Gjs wrapper for g_main_loop_run()
}
  

Runs a main loop until GLib.MainLoop.prototype.quit is called on the loop. If this is called for the thread of the loop's GLib.MainContext, it will process events from the loop, otherwise it will simply wait.