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

Function a

extra_tests/snippets/syntax_async.py:37–44  ·  view source on GitHub ↗
(s, m)

Source from the content-addressed store, hash-verified

35SLEEP_UNIT = 0.1
36
37async def a(s, m):
38 async with ContextManager() as b:
39 print(f"val = {b}")
40 await asyncio.sleep(s)
41 async for i in AIterWrap(range(0, 2)):
42 print(i)
43 ls.append(m)
44 await asyncio.sleep(SLEEP_UNIT)
45
46
47async def run():

Callers 1

runFunction · 0.70

Calls 5

AIterWrapClass · 0.85
ContextManagerClass · 0.70
printFunction · 0.50
sleepMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected