Gio.DBusConnection.prototype.send_message_with_reply_finish
function send_message_with_reply_finish(res: Gio.AsyncResult): Gio.DBusMessage { // Gjs wrapper for g_dbus_connection_send_message_with_reply_finish() }
Finishes an operation started with Gio.DBusConnection.prototype.send_message_with_reply.
Note that @error is only set if a local in-process error occurred. That is to say that the returned Gio.DBusMessage object may be of type Gio.DBusMessageType.error. Use Gio.DBusMessage.prototype.to_gerror to transcode this to a GLib.Error.
See this [server][gdbus-server] and [client][gdbus-unix-fd-client] for an example of how to use this low-level API to send and receive UNIX file descriptors.
Since 2.26
- res
a Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to Gio.DBusConnection.prototype.send_message_with_reply
- Returns
a locked Gio.DBusMessage or null if @error is set