Gio.File.prototype.open_readwrite_finish

function open_readwrite_finish(res: Gio.AsyncResult): Gio.FileIOStream {
    // Gjs wrapper for g_file_open_readwrite_finish()
}
  

Finishes an asynchronous file read operation started with Gio.File.prototype.open_readwrite_async.

Since 2.22

res

a Gio.AsyncResult

Returns

a Gio.FileIOStream or null on error. Free the returned object with GObject.Object.prototype.unref.