ID EN
Inspect

getcoroutinestate

Python 3.11

Get current state of a coroutine object. The function is intended to be used with coroutine objects created by async def functions, but will accept any coroutine-like object that has cr_running and cr_frame attributes.

Syntax

PYTHON
inspect.getcoroutinestate(coroutine)

See Also

async def