GLib.MainContext.prototype.check

function check(max_priority: Number(gint), fds: Array(GLib.PollFD)): Number(gint) {
    // Gjs wrapper for g_main_context_check()
}
  

Passes the results of polling back to the main loop.

You must have successfully acquired the context with GLib.MainContext.prototype.acquire before you may call this function.

max_priority

the maximum numerical priority of sources to check

fds

array of GLib.PollFD's that was passed to the last call to GLib.MainContext.prototype.query

Returns

true if some sources are ready to be dispatched.