Gio.AsyncResult.prototype.legacy_propagate_error

function legacy_propagate_error(): Boolean {
    // Gjs wrapper for g_async_result_legacy_propagate_error()
}
  

If res is a Gio.SimpleAsyncResult, this is equivalent to Gio.SimpleAsyncResult.prototype.propagate_error. Otherwise it returns false.

This can be used for legacy error handling in async *_finish() wrapper functions that traditionally handled Gio.SimpleAsyncResult error returns themselves rather than calling into the virtual method. This should not be used in new code; Gio.AsyncResult errors that are set by virtual methods should also be extracted by virtual methods, to enable subclasses to chain up correctly.

Since 2.34

Returns

true if @error is has been filled in with an error from res, false if not.