Collection Interface ABCs
collections.abc.AsyncIterable
Objects that implement __aiter__ and provide an asynchronous iterator.
Formal Syntax & Structure
python syntaxpython
collections.abc.AsyncIterableReturn Value
type
Abstract base class object representing the described interface; use it for recognition or inheritance.
Working Example
Example Snippetpython
import collections.abcasync def f(): yield 1g=f()import asynciotry: result=isinstance(g,collections.abc.AsyncIterable)finally: asyncio.run(g.aclose())print(result)