GLib.MainContext.prototype.dispatch
function dispatch(): void { // Gjs wrapper for g_main_context_dispatch() }
Dispatches all pending sources.
You must have successfully acquired the context with GLib.MainContext.prototype.acquire before you may call this function.