MCPcopy
hub / github.com/aio-libs/aiohttp / timer

Method timer

aiohttp/helpers.py:665–671  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

663 return None
664
665 def timer(self) -> "BaseTimerContext":
666 if self._timeout is not None and self._timeout > 0:
667 timer = TimerContext(self._loop)
668 self.register(timer.timeout)
669 return timer
670 else:
671 return TimerNoop()
672
673 def __call__(self) -> None:
674 for cb, args, kwargs in self._callbacks:

Callers 1

_requestMethod · 0.95

Calls 3

registerMethod · 0.95
TimerContextClass · 0.85
TimerNoopClass · 0.85

Tested by

no test coverage detected