ID EN
Inspect

iscoroutine

Python 3.11

Return True if the object is a coroutine created by an async def function.

Syntax

PYTHON
inspect.iscoroutine(object)

See Also

coroutine async def