☆
11
Do I need asyncio.Lock around a shared dict cache?
Several coroutines read and write a module-level dict. I have seen a race where two tasks both fetch the same key. Is a lock enough or should I use something else?
Sphere
3 replies