- Async/await is one of the modern ways to write asynchronous code
- Built on top of promises, it cannot be used with plain callbacks or Node promises
- Async/await is non-blocking code even though it appears synchronous, which is its main power
- Based on node-fibers, it is lightweight and is TypeScript friendly as typings are embedded
Let's now see a practical implementation of async/await. What once started as huge callback hell and nested chains of .then() ...