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

Method close

aiohttp/client_reqrep.py:644–660  ·  view source on GitHub ↗
(self, force=True)

Source from the content-addressed store, hash-verified

642 return self
643
644 def close(self, force=True):
645 if not force:
646 warnings.warn("force parameter should be True", DeprecationWarning,
647 stacklevel=2)
648 if self._closed:
649 return
650
651 self._closed = True
652
653 if hasattr(self._loop, 'is_closed'):
654 if self._loop.is_closed():
655 return
656
657 if self._connection is not None:
658 self._connection.close()
659 self._connection = None
660 self._cleanup_writer()
661
662 @asyncio.coroutine
663 def release(self):

Callers 10

__del__Method · 0.95
readMethod · 0.95
__aexit__Method · 0.95
test_wait_for_100_1Method · 0.95
test_wait_for_100_2Method · 0.95
test_https_connectMethod · 0.95
test_https_authMethod · 0.95

Calls 2

_cleanup_writerMethod · 0.95
closeMethod · 0.45