python-trio / trio-asyncio

a re-implementation of the asyncio mainloop on top of Trio
Other
189 stars 38 forks source link

Calling an asyncio procedure is started in trio #40

Closed smurfix closed 6 years ago

smurfix commented 6 years ago

Some asyncio code depends on running within the asyncio loop even when building a coroutine from an async function. Currently trio_asyncio ignores that and creates the coroutine in Trio context.

We need to defer that.