isValid

fun isValid(result: AsyncResult, sourceObject: <Error class: unknown class>? = null): Boolean

Checks that @result is a #GTask, and that @source_object is its source object (or that @source_object is null and @result has no source object). This can be used in g_return_if_fail() checks.

Return

true if @result and @source_object are valid, false if not

Since

2.36

Parameters

result

A #GAsyncResult

sourceObject

the source object expected to be associated with the task