create_async


Description:

protected virtual async G create_async (int priority = DEFAULT, Cancellable? cancellable = null) throws Error

Create an instance asynchronously

For classes which implement GLib.AsyncInitable, the default implementation will create an instance of the class using GLib.Object.new then initialize the instance using GLib.AsyncInitable.init_async. Otherwise, the default implementation will simply invoke create in an idle callback. You can override this method in a subclass to provide a customized method for instantiating your object asynchronously.

Returns:

the newly created instance




2022 vala-language.org