MCPcopy
hub / github.com/encode/uvicorn / run_later

Method run_later

tests/protocols/test_http.py:241–248  ·  view source on GitHub ↗
(self, with_delay: float)

Source from the content-addressed store, hash-verified

239 return await self._tasks.pop()
240
241 def run_later(self, with_delay: float) -> None:
242 later: list[MockTimerHandle] = []
243 for timer_handle in self._later:
244 if with_delay >= timer_handle.delay:
245 timer_handle.callback(*timer_handle.args)
246 else:
247 later.append(timer_handle)
248 self._later = later
249
250
251class MockTask:

Callers 1

test_keepalive_timeoutFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected