MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _close_connection

Method _close_connection

asyncpg/_testbase/fuzzer.py:147–150  ·  view source on GitHub ↗
(self, connection)

Source from the content-addressed store, hash-verified

145 self.restore_connectivity()
146
147 def _close_connection(self, connection):
148 conn_task = self.connections.get(connection)
149 if conn_task is not None:
150 conn_task.cancel()
151
152 def close_all_connections(self):
153 for conn in list(self.connections):

Callers 1

closeMethod · 0.80

Calls 2

getMethod · 0.80
cancelMethod · 0.45

Tested by

no test coverage detected