3 ms·
In our experience race conditions happen in JS regardless of its single threaded nature. It happens because of concurrent asynchronous operations that work on s
by CMCDragonkai 4y ago
In our experience race conditions happen in JS regardless of its single threaded nature. It happens because of concurrent asynchronous operations that work on shared state that exists not necessarily in-memory but also in embedded databases. So most definitely concurrency control must be applied whenever there is any kind of shared state. The single threadedness doesn't matter if there are concurrent asynchronous operations.