Coverage for docs_src/tutorial/soonify/tutorial001.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-09 01:12 +0000

1import anyio 1abcde

2 

3 

4async def do_work(name: str): 1abcde

5 await anyio.sleep(1) 1abcde

6 print(f"Hello, {name}") 1abcde

7 

8 

9async def get_data(): 1abcde

10 await do_work(name="Yury") 1abcde

11 await do_work(name="Nathaniel") 1abcde

12 await do_work(name="Alex") 1abcde

13 

14 

15async def main(): 1abcde

16 await get_data() 1abcde

17 

18 

19anyio.run(main) 1abcde