Consider this example from the Python documentation:
def gen(): # defines a generator function
yield 123
async def agen(): # defines an asynchronous generator function
yield 123
I know this example is simple, but what are things that I can do with gen and not with agen, and viceversa? In what way would I notice their difference?
Related:
I thought this question would help, but I I still don't get it: What are the differences between the purposes of generator functions and asynchronous generator functions