Task.isValid

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.

class Task
static
bool
isValid

Parameters

result AsyncResultIF

A #GAsyncResult

sourceObject ObjectG

the source object expected to be associated with the task

Return: %TRUE if @result and @source_object are valid, %FALSE if not

Meta

Since

2.36