MCPcopy Create free account
hub / github.com/rthalley/dnspython / _timeout

Function _timeout

dns/asyncquery.py:82–88  ·  view source on GitHub ↗
(expiration, now=None)

Source from the content-addressed store, hash-verified

80
81
82def _timeout(expiration, now=None):
83 if expiration is not None:
84 if not now:
85 now = time.time()
86 return max(expiration - now, 0)
87 else:
88 return None
89
90
91async def send_udp(

Callers 7

send_udpFunction · 0.85
receive_udpFunction · 0.85
send_tcpFunction · 0.85
_read_exactlyFunction · 0.85
tlsFunction · 0.85
_inbound_xfrFunction · 0.85
inbound_xfrFunction · 0.85

Calls 1

timeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…