DataInputStream.readUntilAsync

void readUntilAsync(string stopChars, int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

The asynchronous version of [gio.data_input_stream.DataInputStream.readUntil]. It is an error to have two outstanding calls to this function.

Note that, in contrast to [gio.data_input_stream.DataInputStream.readUntil], this function does not consume the stop character that it finds. You must read it for yourself.

When the operation is finished, callback will be called. You can then call [gio.data_input_stream.DataInputStream.readUntilFinish] to get the result of the operation.

Don't use this function in new code. Its functionality is inconsistent with [gio.data_input_stream.DataInputStream.readUntil]. Both functions will be marked as deprecated in a future release. Use [gio.data_input_stream.DataInputStream.readUptoAsync] instead.

Parameters

stopCharscharacters to terminate the read.
ioPrioritythe [I/O priority][io-priority] of the request
cancellableoptional #GCancellable object, null to ignore.
callbackcallback to call when the request is satisfied.

Deprecated

Use [gio.data_input_stream.DataInputStream.readUptoAsync] instead, which

has more consistent behaviour regarding the stop character.