newvAsync

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

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