Gio.AsyncInitable.prototype.new_finish

function new_finish(res: Gio.AsyncResult): GObject.Object {
    // Gjs wrapper for g_async_initable_new_finish()
}
  

Finishes the async construction for the various g_async_initable_new calls, returning the created object or null on error.

Since 2.22

res

the Gio.AsyncResult from the callback

Returns

a newly created GObject.Object, or null on error. Free with GObject.Object.prototype.unref.