Tuesday, 2 May 2017

to make nodejs block calling other functions till one function is completly executed

how to execute the whole function completly which has mysql queries and then moving on to another function in nodejs.As nodejs is asynchronous and non-blocking in nature.It is first executing the non sql part in one function then moving on to another function to execute non-sql part and finally executes the mysql queries in both the functions.



via deepthi cherukuri

No comments:

Post a Comment