Gio.AsyncInitable.new_valist_async
Description: Reference for Gio.AsyncInitable.new_valist_async

### Function

# Gio AsyncInitablenew_valist_async

since: 2.22

#### Declaration [src]

    void
    g_async_initable_new_valist_async (
      GType object_type,
      const gchar* first_property_name,
      va_list var_args,
      int io_priority,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description [src]

Helper function for constructing `GAsyncInitable` object. This is similar to `g_object_new_valist()` 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.

Available since: 2.22

This function is not directly available to language bindings.

#### Parameters

`object_type`

  Type: `GType`

  A `GType` supporting `GAsyncInitable`.

`first_property_name`

  Type: `const gchar*`

  The name of the first property, followed by the value, and other property value pairs, and ended by `NULL`.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`var_args`

  Type: `va_list`

  The var args list generated from `first_property_name`.

`io_priority`

  Type: `int`

  The I/O priority of the operation.

`cancellable`

  Type: `GCancellable`

  Optional `GCancellable` object, `NULL` to ignore.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

`callback`

  Type: `GAsyncReadyCallback`

  A `GAsyncReadyCallback` to call when the initialization is finished.

`user_data`

  Type: `gpointer`

  The data to pass to callback function.

  The argument can be `NULL`.
  The data is owned by the caller of the function.