Skip to content

Instantly share code, notes, and snippets.

@ferreiratiago
Created June 14, 2018 08:50
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 ferreiratiago/73cf2a71959939fa7b75de94ea2bd4e3 to your computer and use it in GitHub Desktop.
Save ferreiratiago/73cf2a71959939fa7b75de94ea2bd4e3 to your computer and use it in GitHub Desktop.
Async function
(async function async() {
var one = await Promise.resolve(1);
var two = await Promise.resolve(2);
console.log(one, two); // 1 2
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment