We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55c9003 commit 0d093f1Copy full SHA for 0d093f1
0x02-python_async_comprehension/0-main.py
@@ -0,0 +1,13 @@
1
+#!/usr/bin/env python3
2
+
3
+import asyncio
4
5
+async_generator = __import__('0-async_generator').async_generator
6
7
+async def print_yielded_values():
8
+ result = []
9
+ async for i in async_generator():
10
+ result.append(i)
11
+ print(result)
12
13
+asyncio.run(print_yielded_values())
README.md
@@ -6,7 +6,9 @@ Python is a versatile and powerful programming language that offers a wide range
## Roadmap
[0x01](0x00-python_variable_annotations): Variable Annotations
[0x02](0x01-python_async_function): Concurrent programming using asyncio
[0x03](0x02-python_async_comprehension): Asynchronous generators
14
0 commit comments