On this page
  1. inspect.getasyncgenstate
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

inspect.getasyncgenstate

Prev: inspect.getasyncgenlocals | Up: inspect | Next: inspect.getattr_static
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org — inspect.getasyncgenstate
Tags: #public #python3 #stdlib #inspect


Import

import inspect
from inspect import getasyncgenstate

Signature & Overview

inspect.getasyncgenstate(agen)

Get current state of an asynchronous generator object.

Usage

import inspect

async def agen():
    yield 1

g = agen()
assert inspect.getasyncgenstate(g) == inspect.AGEN_CREATED

Gotchas

REPL Inspect

from inspect import getasyncgenstate
help(getasyncgenstate)

Linked from

Related notes