AsyncInitableT.newvAsync

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.

template AsyncInitableT(TStruct)
static
void
newvAsync

Parameters

objectType GType

a #GType supporting #GAsyncInitable.

nParameters uint

the number of parameters in @parameters

parameters GParameter*

the parameters to use to construct the object

ioPriority int

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

cancellable Cancellable

optional #GCancellable object, %NULL to ignore.

callback GAsyncReadyCallback

a #GAsyncReadyCallback to call when the initialization is finished

userData void*

the data to pass to callback function

Meta

Since

2.22