trio-asyncio icon indicating copy to clipboard operation
trio-asyncio copied to clipboard

Check loop context

Open smurfix opened this issue 6 years ago • 1 comments

Now that we have contextvar support, add one that remembers whether we're currently in an asyncio or a Trio context. This shall catch erroneous nested calls of run_asyncio and run_trio. Missing calls to these might be possible but needs to be invesigated further.

smurfix avatar Jul 02 '18 01:07 smurfix

Update: use sniffio to do that

smurfix avatar Aug 25 '18 18:08 smurfix