Gio.SocketConnection.prototype.connect_finish

function connect_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_socket_connection_connect_finish()
}
  

Gets the result of a Gio.SocketConnection.prototype.connect_async call.

Since 2.32

result

the Gio.AsyncResult

Returns

true if the connection succeeded, false on error