SimpleAsyncResult.isValid

Ensures that the data passed to the _finish function of an async operation is consistent. Three checks are performed.

First, result is checked to ensure that it is really a #GSimpleAsyncResult. Second, source is checked to ensure that it matches the source object of result. Third, source_tag is checked to ensure that it is equal to the source_tag argument given to gio.simple_async_result.SimpleAsyncResult.new_ (which, by convention, is a pointer to the _async function corresponding to the _finish function from which this function is called). (Alternatively, if either source_tag or result's source tag is null, then the source tag check is skipped.)

More...
class SimpleAsyncResult
static
bool
isValid

Parameters

result gio.async_result.AsyncResult

the #GAsyncResult passed to the _finish function.

source gobject.object.ObjectG

the #GObject passed to the _finish function.

sourceTag void*

the asynchronous function.

Return Value

Type: bool

#TRUE if all checks passed or #FALSE if any failed.

Detailed Description

Deprecated: Use #GTask and gio.task.Task.isValid instead.