Gio.Resolver.prototype.lookup_records_finish

function lookup_records_finish(result: Gio.AsyncResult): Array(GLib.Variant) {
    // Gjs wrapper for g_resolver_lookup_records_finish()
}
  

Retrieves the result of a previous call to Gio.Resolver.prototype.lookup_records_async. Returns a list of records as GLib.Variant tuples. See Gio.ResolverRecordType for information on what the records contain.

If the DNS resolution failed, @error (if non-null) will be set to a value from Gio.ResolverError. If the operation was cancelled, @error will be set to Gio.IOErrorEnum.cancelled.

Since 2.34

result

the result passed to your Gio.AsyncReadyCallback

Returns

a GLib.List of GLib.Variant, or null on error. You must free each of the records and the list when you are done with it. (You can use GLib.List.free_full with GLib.Variant.prototype.unref to do this.)