Re:Fixing the callback spaghetti in node.js
by koush on Thursday September 29, 2011 @04:34AM
(#3051625)
This is certainly something that is doable and crossed my mind, but I did not want to have the await be restricted to functions that conform to the typical return arguments. For now at least.
Here's a concrete example. Normally in Node you do something like this:
The await version would look like this: Ideally it would look like this: