PyDocs

Nav

Python Runtime Services

getasyncgenstate

inspect

function · Added in 3.12 (source)
  • getasyncgenstate(agen)
Get current state of an asynchronous generator object.

Possible states are:
  AGEN_CREATED: Waiting to start execution.
  AGEN_RUNNING: Currently being executed by the interpreter.
  AGEN_SUSPENDED: Currently suspended at a yield expression.
  AGEN_CLOSED: Execution has completed.
0 Examples
No examples for inspect/getasyncgenstate.
See Also
No see-alsos for inspect/getasyncgenstate
0 Notes
No notes for getasyncgenstate