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

Method _clear_entry_callback

asyncpg/connection.py:2661–2663  ·  view source on GitHub ↗
(self, entry)

Source from the content-addressed store, hash-verified

2659 self._on_remove(entry._statement)
2660
2661 def _clear_entry_callback(self, entry):
2662 if entry._cleanup_cb is not None:
2663 entry._cleanup_cb.cancel()
2664
2665 def _maybe_cleanup(self):
2666 # Delete cache entries until the size of the cache is `max_size`.

Callers 4

getMethod · 0.95
clearMethod · 0.95
_set_entry_timeoutMethod · 0.95
_maybe_cleanupMethod · 0.95

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected