MCPcopy
hub / github.com/MagicStack/asyncpg / _clean_tasks

Method _clean_tasks

asyncpg/connection.py:1595–1601  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1593 self._clean_tasks()
1594
1595 def _clean_tasks(self):
1596 # Wrap-up any remaining tasks associated with this connection.
1597 if self._cancellations:
1598 for fut in self._cancellations:
1599 if not fut.done():
1600 fut.cancel()
1601 self._cancellations.clear()
1602
1603 def _check_open(self):
1604 if self.is_closed():

Callers 1

_cleanupMethod · 0.95

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected