Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block2.js Secret

Created April 11, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepta/5757727f74c6cc6f46ff336513d57a44 to your computer and use it in GitHub Desktop.
Save kepta/5757727f74c6cc6f46ff336513d57a44 to your computer and use it in GitHub Desktop.
async function calcArea(country) {
const boundaries = await fetch(country);
area = calculateArea(country, boundaries); // takes a long time
return area;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment