AsyncInitable
Object Hierarchy:
Description:
public interface AsyncInitable :
Object
Provides an interface for asynchronous initializing object such that initialization may fail.
All known implementing classes:
Namespace: GLib
Package: gio-2.0
Content:
Static methods:
-
public static async weak Object new_async (Type object_type, int io_priority = DEFAULT, Cancellable? cancellable, ...) throws Error
Helper function for constructing AsyncInitable
object. This is similar to new but also initializes the
object asynchronously.
-
public static async void new_valist_async (Type object_type, string first_property_name, void* var_args, int io_priority = DEFAULT, Cancellable? cancellable = null)
Helper function for constructing AsyncInitable
object. This is similar to g_object_new_valist but also initializes the object asynchronously.
-
public static async void newv_async (Type object_type, uint n_parameters, Parameter parameters, int io_priority = DEFAULT, Cancellable? cancellable = null)
Helper function for constructing AsyncInitable
object. This is similar to newv but also initializes the
object asynchronously.
Methods:
-
public abstract async bool init_async (int io_priority = DEFAULT, Cancellable? cancellable = null) throws Error
Starts asynchronous initialization of the object implementing the interface. This must be done before
any real use of the object after initial construction. If the object also implements
Initable you can optionally call init instead.