3 ms·
> All this async code without decent locking primitives is leading to a rabbit hole of race conditions... I haven’t seen this happening. Maybe it’s because I t
by minitech 7y ago
> All this async code without decent locking primitives is leading to a rabbit hole of race conditions...
I haven’t seen this happening. Maybe it’s because I tend to use Node for web apps too much, which don’t have much shared state within Node to begin with? That it’s single-threaded does matter immensely, though, because if you have shared state that can be updated synchronously, you just write the code and know that it runs as a unit.