read_until_async


Description:

public async string read_until_async (string stop_chars, int io_priority = DEFAULT, Cancellable? cancellable = null, out size_t length) throws IOError, IOError

The asynchronous version of read_until.

It is an error to have two outstanding calls to this function.

Note that, in contrast to read_until, 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 read_until_async.end to get the result of the operation.

Don't use this function in new code. Its functionality is inconsistent with read_until. Both functions will be marked as deprecated in a future release. Use read_upto_async instead.

Parameters:

this

a given DataInputStream.

stop_chars

characters to terminate the read.

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, null to ignore.

callback

callback to call when the request is satisfied.

user_data

the data to pass to callback function.