News for hackers. Stuff that matters.
Re:Fixing the callback spaghetti in node.js by deepGem on Thursday September 29, 2011 @12:08AM (#3051086)
This is very elegant. Just a couple of questions -

Using await - is the program flow suspended until the corresponding function returns , or does await keyword act more like a 'pause and continue' mechanism.

Re:Fixing the callback spaghetti in node.js by koush on Thursday September 29, 2011 @12:10AM (#3051091)
It exits the function, and resumes it when the callback completes. So other requests can be processed while the async function is (a)waiting.
Re:Fixing the callback spaghetti in node.js by deepGem on Thursday September 29, 2011 @02:56AM (#3051443)
Perfect :).