SimpleAsyncResult.newFromError

Creates a #GSimpleAsyncResult from an error condition.

Parameters

sourceObjecta #GObject, or null.
callbacka #GAsyncReadyCallback.
errora #GError

Returns

a #GSimpleAsyncResult.

Deprecated

Use [gio.task.Task.new_] and [gio.task.Task.returnError] instead.