Gio.IOStream.prototype.close_finish

function close_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_io_stream_close_finish()
}
  

Closes a stream.

Since 2.22

result

a Gio.AsyncResult

Returns

true if stream was successfully closed, false otherwise.