MCPcopy
hub / github.com/python-trio/trio / sleeper

Function sleeper

src/trio/_core/_tests/test_ki.py:271–276  ·  view source on GitHub ↗
(name: str, record: set[str])

Source from the content-addressed store, hash-verified

269
270def test_ki_protection_works() -> None:
271 async def sleeper(name: str, record: set[str]) -> None:
272 try:
273 while True:
274 await _core.checkpoint()
275 except _core.Cancelled:
276 record.add(name + " ok")
277
278 async def raiser(name: str, record: set[str]) -> None:
279 try:

Callers

nothing calls this directly

Calls 1

addMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…