Coverage for docs_src/tutorial/first_steps/tutorial001.py: 100%
9 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 01:12 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-09-09 01:12 +0000
1import anyio 1abcde
4async def do_work(name: str): 1abcde
5 await anyio.sleep(1) 1abcde
6 return f"Hello, {name}" 1abcde
9async def main(): 1abcde
10 message = await do_work(name="World") 1abcde
11 return message 1abcde
14result = anyio.run(main) 1abcde
15print(result) 1abcde