Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ remaining
Function
remaining
pymongo/_csot.py:57–60 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
55
56
57
def
remaining() -> Optional[float]:
58
if
not get_timeout():
59
return
None
60
return
DEADLINE.get() - time.monotonic()
61
62
63
def
clamp_remaining(max_timeout: float) -> float:
Callers
3
_get_access_token
Method · 0.90
_get_access_token
Method · 0.90
clamp_remaining
Function · 0.85
Calls
2
get_timeout
Function · 0.85
get
Method · 0.45
Tested by
no test coverage detected