GLib.MainLoop.prototype.quit

function quit(): void {
    // Gjs wrapper for g_main_loop_quit()
}
  

Stops a GLib.MainLoop from running. Any calls to GLib.MainLoop.prototype.run for the loop will return.

Note that sources that have already been dispatched when GLib.MainLoop.prototype.quit is called will still be executed.