Skip to content

Instantly share code, notes, and snippets.

@s-taylor
Last active September 27, 2017 22:25
Show Gist options
  • Save s-taylor/a492a8252acaddcef5f58de4920ec3d4 to your computer and use it in GitHub Desktop.
Save s-taylor/a492a8252acaddcef5f58de4920ec3d4 to your computer and use it in GitHub Desktop.
Understanding async await - part 5
async function () {
// someAsyncThing being a function that returns a promise
  const result = await someAsyncThing();
  return result.value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment