MCPcopy Create free account
hub / github.com/DeepL/deepl-python / get_time_until_deadline

Method get_time_until_deadline

deepl/http_client.py:45–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

43 return max(self.get_time_until_deadline(), min_connection_timeout)
44
45 def get_time_until_deadline(self):
46 return max(self._deadline - time.time(), 0.0)
47
48 def sleep_until_deadline(self):
49 time.sleep(self.get_time_until_deadline())

Callers 3

get_timeoutMethod · 0.95
sleep_until_deadlineMethod · 0.95
request_with_backoffMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected