<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def list(source):
 """Generate a single list from an asynchronous sequence."""

    result = []
    async with streamcontext(source) as streamer:
        async for item in streamer:
            result.append(item)
    yield result