MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / isasyncgenfunction

Function isasyncgenfunction

tools/python-3.11.9-amd64/Lib/inspect.py:416–422  ·  view source on GitHub ↗

Return true if the object is an asynchronous generator function. Asynchronous generator functions are defined with "async def" syntax and have "yield" expressions in their body.

(obj)

Source from the content-addressed store, hash-verified

414 return _has_code_flag(obj, CO_COROUTINE)
415
416def isasyncgenfunction(obj):
417 """Return true if the object is an asynchronous generator function.
418
419 Asynchronous generator functions are defined with "async def"
420 syntax and have "yield" expressions in their body.
421 """
422 return _has_code_flag(obj, CO_ASYNC_GENERATOR)
423
424def isasyncgen(object):
425 """Return true if the object is an asynchronous generator."""

Callers

nothing calls this directly

Calls 1

_has_code_flagFunction · 0.85

Tested by

no test coverage detected