ps://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#GMainContext">main context</a>;
this is particularly useful when you want to integrate your code with an
<strong>external main loop</strong>:</p>


<pre><code>  local GLib = require("lgi").GLib
  -- Set up the code, then do
  local ctx = GLib.MainLoop():get_context()
  -- Run a single non-blocking iteration
  if ctx:iteration() == true then
    print("something changed!")
  end
  -- Run a single blocking iteration
  if ctx:iteration(true) ==