Monthly Archives: July 2017

How to get, use, and close a DB connection using async functions

By | Uncategorized | No Comments

So far in this async series we’ve covered Node.js style callbacks, the Async module, and promises. In this final part of the series, we’ll learn about async functions (a.k.a. async/await). To me, async functions are the most exciting thing to happen to JavaScript since Ajax. Finally, we can read JavaScript code in a synchronous manner while it executes asyncronously as it always has.
Read More