4 ms·
TIL that ContextVars can work in place of thread locals too. Thanks for pointing that out! I had mistakenly assumed ContextVars only worked for async code.
by MapleWalnut 4y ago
TIL that ContextVars can work in place of thread locals too. Thanks for pointing that out!
I had mistakenly assumed ContextVars only worked for async code.