Is there any race condition below?
问题 I have below code in my express server (have cut it down for brevity). I have a common object which I'm adding/modifying/reading in three different restful end points. Since all http requests in nodejs are asynchronous, I could get both put and get request at the same time . So although PUT happened but lets say status is not updated, my GET could get a slightly stale response? From what I understand, and my testing shows that there is no race condition here. Because updating results object