GLib.IOChannel.prototype.ref

function ref(): GLib.IOChannel {
    // Gjs wrapper for g_io_channel_ref()
}
  

Increments the reference count of a GLib.IOChannel.

Returns

the channel that was passed in (since 2.6)