SimpleAsyncResult


Description:

[ CCode ( has_construct_function = false ) ]
public SimpleAsyncResult (Object? source_object, void* source_tag)

Creates a SimpleAsyncResult.

Note:

Use Task instead.

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

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

Parameters:

source_object

a Object, or null.

source_tag

the asynchronous function.

callback

a TaskReadyCallback.

user_data

user data passed to callback.

Returns:

a SimpleAsyncResult.




2022 vala-language.org