GLib.MainLoop.prototype.is_running

function is_running(): Boolean {
    // Gjs wrapper for g_main_loop_is_running()
}
  

Checks to see if the main loop is currently being run via GLib.MainLoop.prototype.run.

Returns

true if the mainloop is currently being run.