async & await

JavaScript promises were a revelation in JavaScript, providing an alternative to the JavaScript callback hell we’d quickly found ourselves in.  Promises also allowed us to introduce and better handle asynchronous tasks.  While promises were an improvement over callback hell, they still require lots of thens which can become messy.  I’ve really taken to ES2017’s async and […]
The post async & await appeared first on David Walsh Blog.

Link: https://davidwalsh.name/async-await