Gio.BufferedInputStream.prototype.fill_async

function fill_async(count: Number(gssize), io_priority: Number(gint), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_buffered_input_stream_fill_async()
}
  

Reads data into stream's buffer asynchronously, up to count size. io_priority can be used to prioritize reads. For the synchronous version of this function, see Gio.BufferedInputStream.prototype.fill.

If count is -1 then the attempted read size is equal to the number of bytes that are required to fill the buffer.

count

the number of bytes that will be read from the stream

io_priority

the [I/O priority][io-priority] of the request

cancellable

optional Gio.Cancellable object

callback

a Gio.AsyncReadyCallback