Warning: read_until_async is deprecated since 2.56.
The asynchronous version of read_until.
Use read_upto_async instead, which has more consistent behaviour regarding the stop character.
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.
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. |