Node.js Async: How to Use ES6 Promises

Introduction Promises are an alternative to callbacks for delivering the results of an asynchronous computation. They require more effort from implementors of asynchronous functions, but provide several benefits for users of those functions. Promises are a pattern that helps with one particular kind of asynchronous programming: a function (or method) that returns a single result …

Continue reading