SimpleAsyncResult.this

Creates a #GSimpleAsyncResult.

The common convention is to create the #GSimpleAsyncResult in the function that starts the asynchronous operation and use that same function as the @source_tag.

If your operation supports cancellation with #GCancellable (which it probably should) then you should provide the user's cancellable to g_simple_async_result_set_check_cancellable() immediately after this function returns.

More...

Parameters

sourceObject ObjectG

a #GObject, or %NULL.

callback GAsyncReadyCallback

a #GAsyncReadyCallback.

userData void*

user data passed to @callback.

sourceTag void*

the asynchronous function.

Return Value

a #GSimpleAsyncResult.

Detailed Description

Deprecated: Use g_task_new() instead.

Throws

ConstructionException GTK+ fails to create the object.

Meta