Gio.SimpleAsyncResult.new_from_error

function new_from_error(source_object: GObject.Object, callback: Gio.AsyncReadyCallback, error: GLib.Error): Gio.SimpleAsyncResult {
    // Gjs wrapper for g_simple_async_result_new_from_error()
}
  

Creates a Gio.SimpleAsyncResult from an error condition.

source_object

a GObject.Object, or null.

callback

a Gio.AsyncReadyCallback.

error

a GLib.Error

Returns

a Gio.SimpleAsyncResult.