13.18. AsyncIO Iterator¶
Asynchronous Generators https://peps.python.org/pep-0525/
13.18.1. Example¶
>>> async def myfunc(self):
... await asyncio.sleep(1)
... yield 'done'
13.18.2. Typing¶
collections.abc.AsyncGenerator
Asynchronous Generators https://peps.python.org/pep-0525/
>>> async def myfunc(self):
... await asyncio.sleep(1)
... yield 'done'
collections.abc.AsyncGenerator