Gio.Resolver.prototype.lookup_service_finish
function lookup_service_finish(result: Gio.AsyncResult): Array(Gio.SrvTarget) { // Gjs wrapper for g_resolver_lookup_service_finish() }
Retrieves the result of a previous call to Gio.Resolver.prototype.lookup_service_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.SrvTarget, or null on error. See Gio.Resolver.prototype.lookup_service for more details.