MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / read_loop

Function read_loop

tests/test_client_functional.py:797–800  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

readMethod · 0.45

Tested by

no test coverage detected