<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def background_reader(stream, loop: asyncio.AbstractEventLoop, callback):
 """ Reads a stream and forwards each line to an async callback. """


    for line in iter(stream.readline, b''):
        loop.call_soon_threadsafe(loop.create_task, callback(line))