Gio.SimpleAsyncResult.prototype.complete_in_idle

function complete_in_idle(): void {
    // Gjs wrapper for g_simple_async_result_complete_in_idle()
}
  

Completes an asynchronous function in an idle handler in the [thread-default main context][g-main-context-push-thread-default] of the thread that simple was initially created in (and re-pushes that context around the invocation of the callback).

Calling this function takes a reference to simple for as long as is needed to complete the call.