Gio.File.prototype.read_finish

function read_finish(res: Gio.AsyncResult): Gio.FileInputStream {
    // Gjs wrapper for g_file_read_finish()
}
  

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

res

a Gio.AsyncResult

Returns

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