Promises, Async and Await in Node.js
This week we had the much awaited Node.js 8.0.0 release! Node is getting faster and better all the time. This release also makes the async / await feature available natively. But before we look at async / await let us quickly look at promises and specially the bluebird flavor of promises.
I like bluebird because it provides some really cool features on top of the promises API. Let us build upon an example where we make HTTP calls to fetch the weather information. We will use the Dark Sky API so we are "Powered by Dark Sky" :) (I need to say this for licensing reasons).
Senior Lead Software Engineer | PowerSchool
7 年Async/await is one of the best feature of Node.js . Recently i started to use it with Koa2 and it is an great experience till now.