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

Function fetch1

tests/test_client_functional.py:4262–4268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4260 fut2 = loop.create_future()
4261
4262 async def fetch1():
4263 resp = await client.get("/")
4264 assert resp.status == 200
4265 fut1.set_result(None)
4266 with pytest.raises(asyncio.CancelledError):
4267 await fut2
4268 resp.release()
4269
4270 async def fetch2():
4271 await fut1

Callers 1

Calls 2

getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected