3 ms·
Promises are a good option as well: https://gist.github.com/3889970 https://gist.github.com/3889970 Node.js had promises early on, then were removed, but they'
by tlrobinson 14y ago
Promises are a good option as well: https://gist.github.com/3889970 https://gist.github.com/3889970
Node.js had promises early on, then were removed, but they're slowly gaining traction again.
- ikawe 14y agoMy understanding is not that promises weren't valued, but that there were conflicting opinions on how to implement them, so promises were left in user land, in hopes that the community would vet a better solution than could be prescribed by the node team. https://groups.google.com/forum/#!msg/nodejs/jaufClrXU9U/ov5WHIk7SAwJ https://groups.google.com/forum/#!msg/nodejs/jaufClrXU9U/ov5... q seems to be a popular choice. https://github.com/kriskowal/q https://github.com/kriskowal/q