Re: ContextVars in async context

2022-12-21 Thread Dieter Maurer
Marce Coll wrote at 2022-12-20 22:09 +0100: >Hi python people, hope this is the correct place to ask this! > >For a transactional async decorator I'm building I am using contextvars in >order to know when a transaction is open in my current context. > >My understanding is that if given the followi

ContextVars in async context

2022-12-20 Thread Marce Coll
Hi python people, hope this is the correct place to ask this! For a transactional async decorator I'm building I am using contextvars in order to know when a transaction is open in my current context. My understanding is that if given the following call stack A |- B | |- C |- D |- E If you