The asynchronous version of read_upto.
It is an error to have two outstanding calls to this function.
In contrast to read_until, this function does not consume the stop character. You have to use read_byte to get it before calling read_upto again.
Note that stop_chars may contain '\0' if stop_chars_len is specified.
When the operation is finished, callback will be called. You can then call read_upto_async.end
to get the result of the operation.
| this | |
| stop_chars |
characters to terminate the read |
| stop_chars_len |
length of |
| 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 |