AsyncInitable.newvAsync

void newvAsync(gobject.types.GType objectType, uint nParameters, gobject.parameter.Parameter parameters, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Helper function for constructing #GAsyncInitable object. This is similar to [gobject.object.ObjectWrap.newv] but also initializes the object asynchronously.

When the initialization is finished, callback will be called. You can then call [gio.async_initable.AsyncInitable.newFinish] to get the new object and check for any errors.

Parameters

objectTypea #GType supporting #GAsyncInitable.
nParametersthe number of parameters in parameters
parametersthe parameters to use to construct the object
ioPrioritythe [I/O priority][io-priority] of the operation
cancellableoptional #GCancellable object, null to ignore.
callbacka #GAsyncReadyCallback to call when the initialization is finished

Deprecated

Use [gobject.object.ObjectWrap.newWithProperties] and

[gio.async_initable.AsyncInitable.initAsync] instead. See #GParameter for more information.