MainContext.dispatch

void dispatch()

Dispatches all pending sources.

You must have successfully acquired the context with [glib.main_context.MainContext.acquire] before you may call this function.

Since 2.76 context can be null to use the global-default main context.