Gio.InputStream.prototype.read_finish

function read_finish(result: Gio.AsyncResult): Number(gssize) {
    // Gjs wrapper for g_input_stream_read_finish()
}
  

Finishes an asynchronous stream read operation.

result

a Gio.AsyncResult.

Returns

number of bytes read in, or -1 on error, or 0 on end of file.