ID EN
Inspect

iscoroutinefunction

Python 3.11

Return True if the object is a coroutine function (a function defined with an async def syntax).

Syntax

PYTHON
inspect.iscoroutinefunction(object)

See Also

coroutine function async def functools.partial() coroutine function