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

Function run

extra_tests/snippets/syntax_async.py:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47async def run():
48 tasks = [
49 asyncio.create_task(c)
50 for c in [a(SLEEP_UNIT * 0, "hello1"), a(SLEEP_UNIT * 1, "hello2"), a(SLEEP_UNIT * 2, "hello3"), a(SLEEP_UNIT * 3, "hello4")]
51 ]
52 await asyncio.wait(tasks)
53
54expected = [
55 1,

Callers 1

testFunction · 0.70

Calls 3

aFunction · 0.70
create_taskMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected