SimpleAsyncResult.from_error


Description:

[ CCode ( has_construct_function = false ) ]
public SimpleAsyncResult.from_error (Object? source_object, Error error)

Creates a SimpleAsyncResult from an error condition.

Note:

Use Task and return_error instead.

Parameters:

source_object

a Object, or null.

error

a Error

callback

a TaskReadyCallback.

user_data

user data passed to callback.

Returns:

a SimpleAsyncResult.