In this lesson you’ll learn how to create an asynchronous generator:
async def square_odds(start, stop): for odd in odds(start, stop): await asyncio.sleep(2) yield odd ** 2
You’ll also see how to loop over values asynchronously using an async
karncx on Aug. 30, 2019
Why does the async for take number of steps * 2 seconds? Why does it not save time like asyncio.gather?