Gio.DataInputStream.prototype.read_line_async
function read_line_async(io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for g_data_input_stream_read_line_async() }
The asynchronous version of Gio.DataInputStream.prototype.read_line. It is an error to have two outstanding calls to this function.
When the operation is finished, callback will be called. You can then call Gio.DataInputStream.prototype.read_line_finish to get the result of the operation.
Since 2.20
- io_priority
the [I/O priority][io-priority] of the request
- cancellable
optional Gio.Cancellable object, null to ignore.
- callback
callback to call when the request is satisfied.