MCPcopy 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
57def remaining() -> Optional[float]:
58 if not get_timeout():
59 return None
60 return DEADLINE.get() - time.monotonic()
61
62
63def clamp_remaining(max_timeout: float) -> float:

Callers 3

_get_access_tokenMethod · 0.90
_get_access_tokenMethod · 0.90
clamp_remainingFunction · 0.85

Calls 2

get_timeoutFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected