Gio.Resolver.prototype.lookup_by_name_finish

function lookup_by_name_finish(result: Gio.AsyncResult): Array(Gio.InetAddress) {
    // Gjs wrapper for g_resolver_lookup_by_name_finish()
}
  

Retrieves the result of a call to Gio.Resolver.prototype.lookup_by_name_async.

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.22

result

the result passed to your Gio.AsyncReadyCallback

Returns

a GLib.List of Gio.InetAddress, or null on error. See Gio.Resolver.prototype.lookup_by_name for more details.