MCPcopy
hub / github.com/encode/starlette / numbers_for_cleanup

Function numbers_for_cleanup

tests/test_responses.py:112–115  ·  view source on GitHub ↗
(start: int = 1, stop: int = 5)

Source from the content-addressed store, hash-verified

110 await anyio.sleep(0)
111
112 async def numbers_for_cleanup(start: int = 1, stop: int = 5) -> None:
113 nonlocal filled_by_bg_task
114 async for thing in numbers(start, stop):
115 filled_by_bg_task = filled_by_bg_task + thing
116
117 cleanup_task = BackgroundTask(numbers_for_cleanup, start=6, stop=9)
118 generator = numbers(1, 5)

Callers

nothing calls this directly

Calls 1

numbersFunction · 0.85

Tested by

no test coverage detected