MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _maybe_cancel_inactive_callback

Method _maybe_cancel_inactive_callback

asyncpg/pool.py:285–288  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

283 self._max_inactive_time, self._deactivate_inactive_connection)
284
285 def _maybe_cancel_inactive_callback(self) -> None:
286 if self._inactive_callback is not None:
287 self._inactive_callback.cancel()
288 self._inactive_callback = None
289
290 def _deactivate_inactive_connection(self) -> None:
291 if self._in_use is not None:

Callers 3

connectMethod · 0.95
acquireMethod · 0.95
_release_on_closeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected