async def coro(): # a coroutine function await smth() async def asyncgen(): # an asynchronous generator function await smth() yield 42