ID EN
Inspect

isasyncgenfunction

Python 3.11

Return True if the object is an asynchronous generator function, for example:

Syntax

PYTHON
inspect.isasyncgenfunction(object)

Examples

Example 1
PYTHON
>>> async def agen():
...     yield 1
...
>>> inspect.isasyncgenfunction(agen)
True

See Also

asynchronous generator functools.partial() asynchronous generator