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. Since 2.36

class Task
static
int
isValid
(
void* result
,)

Parameters

result void*

A GAsyncResult. [type Gio.AsyncResult]

sourceObject void*

the source object expected to be associated with the task. [allow-none][type GObject]

Return Value

Type: int

TRUE if result and source_object are valid, FALSE if not

Meta