Consume a target input stream in a non-blocking manner, triggering lines read from it into a callback.