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

Method _maybe_cancel_inactive_callback

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

Source from the content-addressed store, hash-verified

319 self._max_inactive_time, self._deactivate_inactive_connection)
320
321 def _maybe_cancel_inactive_callback(self) -> None:
322 if self._inactive_callback is not None:
323 self._inactive_callback.cancel()
324 self._inactive_callback = None
325
326 def _deactivate_inactive_connection(self) -> None:
327 if self._in_use is not None:

Callers 3

connectMethod · 0.95
acquireMethod · 0.95
_release_on_closeMethod · 0.95

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected