()
| 795 | |
| 796 | # Create a background task that continuously reads data |
| 797 | async def read_loop() -> None: |
| 798 | while True: |
| 799 | # Read "data chunk\n" |
| 800 | await resp.content.read(11) |
| 801 | |
| 802 | read_task = asyncio.create_task(read_loop()) |
| 803 | await asyncio.sleep(0) # Yield control to ensure read_task starts |
no test coverage detected