Gio.Cancellable.prototype.set_error_if_cancelled

function set_error_if_cancelled(): Boolean {
    // Gjs wrapper for g_cancellable_set_error_if_cancelled()
}
  

If the cancellable is cancelled, sets the error to notify that the operation was cancelled.

Returns

true if cancellable was cancelled, false if it was not