async-await
es7 async-await polyfill for es6 (browsers and nodejs)
Install
$ npm install async--await
Usage
/** * Builtin-in */let startTime = performance; { let pageContent; try pageContent = await catch ex throw ex; return pageContent}
/** * module */let async = ; let startTime = performance; let getUser = async { let pageContent; try pageContent = await; catch ex throw ex; return pageContent};
{ try const response = await ; console; catch err console; } let logFetch2 = async { try const response = await; console; catch err console; }; ; ;