Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Author Archives

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.

WP_Query ProTip

 

Await and Async Explained with Diagrams and Examples – Nikolay Grozev

“The async/await syntax in JavaScript ES7 makes it easier to coordinate asynchronous promises. If you need to asynchronously fetch data from multiple databases or APIs in a certain order, you can end up with a spaghetti of promises and callbacks. The async/await construct allows us to express such logic more succinctly with more readable and maintainable code.

This tutorial explains JavaScript async/await syntax and semantics with diagrams and simple examples.”

http://nikgrozev.com/2017/10/01/async-await/

Await and Async Explained with Diagrams and Examples – Nikolay Grozev