MCPcopy
hub / github.com/aio-libs/aiohttp / f

Function f

tests/test_connector.py:3153–3159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3151 acquired = False
3152
3153 async def f():
3154 nonlocal acquired
3155 connection2 = await conn.connect(req, None, ClientTimeout())
3156 acquired = True
3157 assert 1 == len(conn._acquired)
3158 assert 1 == len(conn._acquired_per_host[key])
3159 connection2.release()
3160
3161 task = loop.create_task(f())
3162

Calls 3

ClientTimeoutClass · 0.90
connectMethod · 0.80
releaseMethod · 0.45

Tested by

no test coverage detected