Gio.IOStream.prototype.is_closed

function is_closed(): Boolean {
    // Gjs wrapper for g_io_stream_is_closed()
}
  

Checks if a stream is closed.

Since 2.22

Returns

true if the stream is closed.