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

Method _on_entry_expired

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

Source from the content-addressed store, hash-verified

2597 return entry
2598
2599 def _on_entry_expired(self, entry):
2600 # `call_later` callback, called when an entry stayed longer
2601 # than `self._max_lifetime`.
2602 if self._entries.get(entry._query) is entry:
2603 self._entries.pop(entry._query)
2604 self._on_remove(entry._statement)
2605
2606 def _clear_entry_callback(self, entry):
2607 if entry._cleanup_cb is not None:

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected