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

Method _on_entry_expired

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

Source from the content-addressed store, hash-verified

2652 return entry
2653
2654 def _on_entry_expired(self, entry):
2655 # `call_later` callback, called when an entry stayed longer
2656 # than `self._max_lifetime`.
2657 if self._entries.get(entry._query) is entry:
2658 self._entries.pop(entry._query)
2659 self._on_remove(entry._statement)
2660
2661 def _clear_entry_callback(self, entry):
2662 if entry._cleanup_cb is not None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected