MCPcopy Index your code
hub / github.com/RustPython/RustPython / cb

Method cb

Lib/test/test_asyncio/test_events.py:304–306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

302 def test_run_until_complete_stopped(self):
303
304 async def cb():
305 self.loop.stop()
306 await asyncio.sleep(0.1)
307 task = cb()
308 self.assertRaises(RuntimeError,
309 self.loop.run_until_complete, task)

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected