Checks to see if the main loop is currently being run via GLib.MainLoop.run.
true if the main loop is currently being run, false otherwise
Stops a GLib.MainLoop from running. Any calls to GLib.MainLoop.run for the loop will return.
Note that sources that have already been dispatched when GLib.MainLoop.quit is called will still be executed.
Runs a main loop until GLib.MainLoop.quit is called on the loop.
If this is called from the thread of the loop’s GLib.MainContext, it will process events from the loop, otherwise it will simply wait.
Similar to GLib.MainLoop.run but return a Promise which resolves when the main loop ends, instead of blocking while the main loop runs.
This helps avoid the situation where Promises never resolved if you didn't run the main loop inside a callback.
Decreases the reference count on a GLib.MainLoop object by one.
If the result is zero, the loop and all associated memory are freed.
Staticnew
The GLib.MainLoop struct is an opaque data type representing the main event loop of a GLib or GTK application.