Last active
September 27, 2017 22:25
-
-
Save s-taylor/a492a8252acaddcef5f58de4920ec3d4 to your computer and use it in GitHub Desktop.
Understanding async await - part 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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