Skip to content
Merged
Prev Previous commit
Next Next commit
force execution to pause in async gen
  • Loading branch information
hydrogen602 committed May 26, 2024
commit dc5f07fa00c11e8cae08edd2e015eca7cb008f51
1 change: 1 addition & 0 deletions extra_tests/snippets/async_comprehension.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def f_iter():

async def f_aiter():
for i in range(5):
await asyncio.sleep(0.001)
yield i


Expand Down