Hacker News new | ask | show | jobs
by MapleWalnut 1456 days 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.