I'm trying to log a statement in an async function as follows:
async generateCharts (insights) {
const { url } = await this.reportsClient.createReport(insights)
console.log('url from reports', url)
return this.parse(url)
}
Log statement doesn't show up though, and I'm sure it's because of the async function. Is that correct? Anyway to work around this?
createReportto fulfill to verify this?asyncfunctions are not part of ES6 (ES2015). They will part of thies year's release, ES2017.