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

Method main

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

Source from the content-addressed store, hash-verified

1880 self.assertTrue(ov.pending)
1881
1882 async def main():
1883 try:
1884 self.loop.call_soon(f.cancel)
1885 await f
1886 except asyncio.CancelledError:
1887 res = 'cancelled'
1888 else:
1889 res = None
1890 finally:
1891 self.loop.stop()
1892 return res
1893
1894 t = self.loop.create_task(main())
1895 self.loop.run_forever()

Callers 1

test_events.pyFile · 0.45

Calls 2

call_soonMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected