MCPcopy Index your code
hub / github.com/python/cpython / when

Method when

Lib/asyncio/timeouts.py:44–46  ·  view source on GitHub ↗

Return the current deadline.

(self)

Source from the content-addressed store, hash-verified

42 self._when = when
43
44 def when(self) -> float | None:
45 """Return the current deadline."""
46 return self._when
47
48 def reschedule(self, when: float | None) -> None:
49 """Reschedule the timeout."""

Calls

no outgoing calls

Tested by 8

test_timeout_at_basicMethod · 0.36
test_timeout_disabledMethod · 0.36
test_timeout_zeroMethod · 0.36
test_rescheduleMethod · 0.36