new_valist_async


Description:

[ CCode ( finish_name = "g_async_initable_new_finish" ) ]
public static async Object new_valist_async (Type object_type, string first_property_name, va_list var_args, int io_priority = DEFAULT, Cancellable? cancellable = null)

Helper function for constructing AsyncInitable object.

This is similar to new_valist but also initializes the object asynchronously.

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

Parameters:

object_type

a Type supporting AsyncInitable.

first_property_name

the name of the first property, followed by the value, and other property value pairs, and ended by null .

var_args

The var args list generated from first_property_name.

io_priority

the I/O priority of the operation

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback to call when the initialization is finished

user_data

the data to pass to callback function




2022 vala-language.org