python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trio_as_aio() can't handle async context managers that create a nursery or cancel scope...

oremanj opened this issue · comments

... because it doesn't execute aenter and aexit in the same underlying Trio task. You get a super inscrutable chain of AssertionErrors.

Not sure how feasible this is to fix, but I ran into it today in my first attempt to use trio-asyncio for something real.