SimpleAsyncResult.newFromError

Creates a #GSimpleAsyncResult from an error condition.

More...

Parameters

sourceObject gobject.object.ObjectG

a #GObject, or null.

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback.

error glib.error.ErrorG

a #GError

Return Value

Type: gio.simple_async_result.SimpleAsyncResult

a #GSimpleAsyncResult.

Detailed Description

Deprecated: Use gio.task.Task.new_ and gio.task.Task.returnError instead.