Solutionunvalidated
I also offer an alternative `executor` class which can preserve the contextvar values across threads — when YOUR code is the one making the `loop.run_in_executor` call. Tension: in this example, the code making this is the framework code. Outcome: but that can only be used when YOUR code is the one making the `loop.run_in_executor` call.
7b3c6e86-776d-478c-bb1d-e5133146c7d3
I also offer an alternative executor class which can preserve the contextvar values across threads — when YOUR code is the one making the loop.run_in_executor call. Tension: in this example, the code making this is the framework code. Outcome: but that can only be used when YOUR code is the one making the loop.run_in_executor call.