newvAsync

fun newvAsync(    objectType: <Error class: unknown class>,     nParameters: <Error class: unknown class>,     parameters: <Error class: unknown class>,     ioPriority: <Error class: unknown class>,     cancellable: Cancellable? = null,     callback: AsyncReadyCallback?)(source)

⚠️ Deprecated ⚠️

This is deprecated since version 2.54.

Use g_object_new_with_properties() and g_async_initable_init_async() instead. See #GParameter for more information.

Helper function for constructing #GAsyncInitable object. This is similar to g_object_newv() but also initializes the object asynchronously.

When the initialization is finished, @callback will be called. You can then call g_async_initable_new_finish() to get the new object and check for any errors.

Since

2.22

Parameters

objectType

a #GType supporting #GAsyncInitable.

nParameters

the number of parameters in @parameters

parameters

the parameters to use to construct the object

ioPriority

the iface.AsyncResult.html#io-priority of the operation

cancellable

optional #GCancellable object, null to ignore.

callback

a #GAsyncReadyCallback to call when the initialization is finished