PyDocs

Nav

Python Runtime Services

getcoroutinestate

inspect

function · Added in 3.5 (source)
  • getcoroutinestate(coroutine)
Get current state of a coroutine object.

Possible states are:
  CORO_CREATED: Waiting to start execution.
  CORO_RUNNING: Currently being executed by the interpreter.
  CORO_SUSPENDED: Currently suspended at an await expression.
  CORO_CLOSED: Execution has completed.
0 Examples
No examples for inspect/getcoroutinestate.
See Also
No see-alsos for inspect/getcoroutinestate
0 Notes
No notes for getcoroutinestate