Gio.bus_get_finish
function bus_get_finish(res: Gio.AsyncResult): Gio.DBusConnection { // Gjs wrapper for g_bus_get_finish() }
Finishes an operation started with Gio.bus_get.
The returned object is a singleton, that is, shared with other callers of Gio.bus_get and Gio.bus_get_sync for @bus_type. In the event that you need a private message bus connection, use Gio.dbus_address_get_for_bus_sync and Gio.DBusConnection.new_for_address.
Note that the returned Gio.DBusConnection object will (usually) have the Gio.DBusConnection.exit_on_close property set to true.
Since 2.26
- res
a Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gio.bus_get
- Returns
a Gio.DBusConnection or null if @error is set. Free with GObject.Object.prototype.unref.