Javascript Async/Await via Generators
async/await with ES6 Generators & Promises This vanilla ES6 function async allows code to yield (i.e. await) the asynchronous result of any Promise within. The usage is almost identical to ES7’s async/await keywords. async/await control flow is promising because it allows the programmer to reason linearly about complex asynchronous code. It also has the benefit of unifying traditionally disparate synchronous and asynchronous error handling code into one try/catch block. This is expository code for the purpose of learning ES6....