Class (GI Struct)

GLib-2.0GLibMainLoop

The GLib.MainLoop struct is an opaque data type representing the main event loop of a GLib or GTK application.

Index

Constructors

Properties

Methods

  • 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.

    Returns Promise<void>