Gio.AsyncInitable.newv_async

function newv_async(object_type: GObject.Type, n_parameters: Number(guint), parameters: GObject.Parameter, io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_async_initable_newv_async()
}
  

Helper function for constructing Gio.AsyncInitable object. This is similar to GObject.Object.new but also initializes the object asynchronously.

When the initialization is finished, callback will be called. You can then call Gio.AsyncInitable.prototype.new_finish to get the new object and check for any errors.

Since 2.22

object_type

a GLib.Type supporting Gio.AsyncInitable.

n_parameters

the number of parameters in parameters

parameters

the parameters to use to construct the object

io_priority

the [I/O priority][io-priority] of the operation

cancellable

optional Gio.Cancellable object, null to ignore.

callback

a Gio.AsyncReadyCallback to call when the initialization is finished