Tuesday 20 August 2019

Does await block code execution for every user trying to get a response from server?

Example: there are two users, asking for a response from the same endpoint at the same time. Lets assume one of them hit await statement a bit early(talking about miliseconds), will server wait for that statements execution before it continues code execution for second user? Or how does it work? Or does node do this without async await too? Im confused.. still kinda newbie..

Submitted August 20, 2019 at 07:47PM by warchild4l

No comments:

Post a Comment