8.18. AsyncIO Iterator

8.18.1. Example

>>> async def myfunc(self):
...     await asyncio.sleep(1)
...     yield 'done'

8.18.2. Type Annotation

  • collections.abc.AsyncGenerator