example/src/async.js
async function getProcessedData(url) {
  let data;

  try {
    data = await downloadData(url);
  } catch (error) {
    data = await downloadFallbackData(url);
  }

  return processDataInWorker(data);
}
async function getProcessedData(url) {
  let data;

  try {
    data = await downloadData(url);
  } catch (error) {
    data = await downloadFallbackData(url);
  }

  return processDataInWorker(data);
}
async function getProcessedData ( url ) { let data ; try { data = await downloadData ( url ) ; } catch ( error ) { data = await downloadFallbackData ( url ) ; } return processDataInWorker ( data ) ; }
Downloads and processes data from specified URL
@param {String} url - Location for resource to be processed.
Downloads and processes data from specified URL