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

Method close

aiohttp/client.py:427–437  ·  view source on GitHub ↗

Close underlying connector. Release all acquired resources.

(self)

Source from the content-addressed store, hash-verified

425 **kwargs))
426
427 def close(self):
428 """Close underlying connector.
429
430 Release all acquired resources.
431 """
432 if not self.closed:
433 self._connector.close()
434 self._connector = None
435 ret = asyncio.Future(loop=self._loop)
436 ret.set_result(None)
437 return ret
438
439 @property
440 def closed(self):

Callers 15

__del__Method · 0.95
__exit__Method · 0.95
__aexit__Method · 0.95
test_format_task_getFunction · 0.95
test_session_cookiesMethod · 0.95
test_session_headersMethod · 0.95
test_session_authMethod · 0.95
create_sessionFunction · 0.95

Calls

no outgoing calls

Tested by 12

test_format_task_getFunction · 0.76
test_session_cookiesMethod · 0.76
test_session_headersMethod · 0.76
test_session_authMethod · 0.76
create_sessionFunction · 0.76
goMethod · 0.76
goMethod · 0.76
runFunction · 0.36