Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/asyncpg
/ get_max_lifetime
Method
get_max_lifetime
asyncpg/connection.py:2521–2522 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2519
self._maybe_cleanup()
2520
2521
def
get_max_lifetime(self):
2522
return
self._max_lifetime
2523
2524
def
set_max_lifetime(self, new_lifetime):
2525
assert new_lifetime >= 0
Callers
1
test_prepare_24_max_lifetime
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_prepare_24_max_lifetime
Method · 0.64