Closed Fuyukai closed 4 years ago
Do you have a short sample program I can look at for testing?
Yes, this reproduces the bug.
import curio
async def agen():
yield 1
await curio.sleep(6000)
yield 2
async def testfn():
async for result in agen():
pass
curio.run(testfn, with_monitor=True)
Doing where
on testfn will produce the specified error.
Whoa. Chasing control flow through an asynchronous generator is a black hole. Not an easy fix, but I reported it as a bug/feature request to CPython. https://bugs.python.org/issue32810