SimpleAsyncResult.this

Creates a gio.SimpleAsyncResult

The common convention is to create the gio.SimpleAsyncResult in the function that starts the asynchronous operation and use that same function as the source_tag.

If your operation supports cancellation with gio.Cancellable (which it probably should) then you should provide the user's cancellable to SimpleAsyncResult.setCheckCancellable immediately after this function returns.

More...

Parameters

sourceObject ObjectG

a GObject, or NULL.

callback GAsyncReadyCallback
userData void*

user data passed to callback.

sourceTag void*

the asynchronous function.

Return Value

Detailed Description

Deprecated: Use Task.new instead.

Throws

ConstructionException GTK+ fails to create the object.