MCPcopy Index your code
hub / github.com/python/cpython / async_gen_wrapper

Method async_gen_wrapper

Lib/test/test_asyncgen.py:368–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 yield 20
367
368 async def async_gen_wrapper():
369 yield 1
370 asg = async_gen()
371 await asg.asend(None)
372 try:
373 await asg.athrow(GeneratorExit())
374 except GeneratorExit:
375 yield 2
376 yield 3
377
378 self.compare_generators(sync_gen_wrapper(), async_gen_wrapper())
379

Callers

nothing calls this directly

Calls 2

asendMethod · 0.45
athrowMethod · 0.45

Tested by

no test coverage detected