Add new overloads for read_until and async_read_until that invoke a user-defined function object to determine when a match has been found.