GLib.MainContext.prototype.prepare

function prepare(priority: Number(gint)): Boolean {
    // Gjs wrapper for g_main_context_prepare()
}
  

Prepares to poll sources within a main loop. The resulting information for polling is determined by calling g_main_context_query ().

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

priority

location to store priority of highest priority source already ready.

Returns

true if some source is ready to be dispatched prior to polling.